模型类

This commit is contained in:
maruizhi
2026-09-24 14:22:50 +08:00
parent a0bf614c77
commit 4c57d748ed
12 changed files with 106 additions and 102 deletions
+8 -8
View File
@@ -8,11 +8,11 @@ class CodeValue(Base):
__tablename__ = "wl_code_value"
id = Column(Integer, primary_key=True, autoincrement=True)
code = Column(String(50))
meaning = Column(String(200))
type = Column(String(100))
is_enabled = Column(Boolean)
created_at = Column(DateTime)
updated_at = Column(DateTime)
is_deleted = Column(default=False, nullable=False)
id = Column(Integer, primary_key=True, autoincrement=True, comment="id")
code = Column(String(50), comment="编码")
meaning = Column(String(200), comment="意义")
type = Column(String(100), comment="类型")
is_enabled = Column(Boolean, comment="状态(是否可用)")
created_at = Column(DateTime, comment="数据创建时间")
updated_at = Column(DateTime, comment="数据更新时间")
is_deleted = Column(default=False, nullable=False, comment="逻辑删除字段")