瀏覽代碼

Dockerfire

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