19 lines
716 B
Python
19 lines
716 B
Python
from sqlalchemy import Integer, Boolean, Column, DateTime, String
|
|
|
|
from util.database import Base
|
|
|
|
|
|
class CodeValue(Base):
|
|
"""对应 Excel Sheet:码值表。"""
|
|
|
|
__tablename__ = "wl_code_value"
|
|
|
|
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="逻辑删除字段")
|