mengqiankang 2 ヶ月 前
コミット
8272cd0910
1 ファイル変更1 行追加1 行削除
  1. 1 1
      alien_store/db/models/contract_store.py

+ 1 - 1
alien_store/db/models/contract_store.py

@@ -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="商家姓名")