You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.3 KiB
24 lines
1.3 KiB
from sqlalchemy import Column, Integer, String, DateTime
|
|
from config.database import Base
|
|
from datetime import datetime
|
|
|
|
|
|
class SysFddict(Base):
|
|
"""
|
|
代码表
|
|
"""
|
|
__tablename__ = 'sys_fddict'
|
|
|
|
fddict_id = Column(Integer, primary_key=True, autoincrement=True, comment='代码序号')
|
|
fddict_code = Column(String(64), nullable=False, comment='代码码值')
|
|
fddict_name = Column(String(50), nullable=False, comment='码值注释')
|
|
fddict_sort = Column(Integer, nullable=False, comment='代码排序')
|
|
status = Column(String(1), nullable=False, default='0', comment='状态(0正常 1停用)')
|
|
fddict_col_en = Column(String(50), nullable=False, comment='代码别名')
|
|
fddict_col_cn = Column(String(50), nullable=False, comment='代码中文名称')
|
|
fddict_col_no = Column(String(50), nullable=False, comment='代码编码')
|
|
create_by = Column(String(64), default='', comment='创建者')
|
|
create_time = Column(DateTime, nullable=True, default=datetime.now(), comment='创建时间')
|
|
update_by = Column(String(64), default='', comment='更新者')
|
|
update_time = Column(DateTime, nullable=True, default=datetime.now(), comment='更新时间')
|
|
remark = Column(String(500), nullable=True, default='', comment='备注')
|