|
|
@@ -10,7 +10,7 @@ class ContractStore(Base, AuditMixin):
|
|
|
店铺合同模型
|
|
|
"""
|
|
|
__tablename__ = "store_contract"
|
|
|
- id: Mapped[int] = mapped_column(BigInteger, primary_key=True, default=next_id(), comment="主键")
|
|
|
+ id: Mapped[int] = mapped_column(BigInteger, primary_key=True, autoincrement=True, comment="主键")
|
|
|
store_id: Mapped[int] = mapped_column(BigInteger, comment="店铺id")
|
|
|
business_segment: Mapped[str] = mapped_column(String(100), comment="经营板块")
|
|
|
merchant_name: Mapped[str] = mapped_column(String(100), comment="商家姓名")
|