fix(shipping-notice): 客户简码允许重复解除全局唯一约束

- short_code 去除 unique,新增迁移 sd9e8f7a6b5c 删除唯一约束
- 服务层移除简码唯一校验,导入预检移除撞码 warning
- 清理四语言失效错误码,同步 demand/tec/technical 文档描述
This commit is contained in:
hugo committed 2026-09-21 19:14:41 +08:00
1 parent 20835dcfc0
commit 34fe0c4d78
13 files changed
+67 -55

No files matched your search

+2 -1
View File
@@ -37,7 +37,8 @@ class ShippingCustomer(Base):
id: Mapped[int] = mapped_column(primary_key=True)
standard_name: Mapped[str] = mapped_column(String(200), nullable=False, index=True)
short_code: Mapped[str] = mapped_column(String(6), nullable=False, unique=True)
# 业务规则:客户简码允许重复(不同标准客户可共用同一简码,仅用作编号前缀),禁止再加唯一约束。
short_code: Mapped[str] = mapped_column(String(6), nullable=False)
status: Mapped[str] = mapped_column(String(32), nullable=False, default='active', server_default='active')
merged_into_customer_id: Mapped[Optional[int]] = mapped_column(
ForeignKey('shipping_customers.id'),