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.
33 lines
2.1 KiB
33 lines
2.1 KiB
1 month ago
|
from sqlalchemy import Column, Integer, String, DateTime
|
||
|
from config.database import Base
|
||
|
from datetime import datetime
|
||
|
|
||
|
|
||
|
class SysDassetdict(Base):
|
||
|
"""
|
||
|
数据资产字典管理表
|
||
|
"""
|
||
|
__tablename__ = 'sys_dasset_dict'
|
||
|
|
||
|
dict_id = Column(Integer, primary_key=True, autoincrement=True, comment='字典序号')
|
||
|
dasset_id = Column(Integer, default=0, comment='数据资产表ID')
|
||
|
tab_name = Column(String(100), nullable=True, default='', comment='数据资产名')
|
||
|
dict_fn = Column(String(100), nullable=True, default='', comment='字段名')
|
||
|
tab_cn_name = Column(String(100), nullable=True, default='', comment='数据资产中文名')
|
||
|
data_dict_no = Column(String(100), nullable=True, default='', comment='数据字典编号')
|
||
|
dict_fccn = Column(String(100), nullable=True, default='', comment='字段中文名')
|
||
|
dict_pk = Column(String(1), nullable=True, default=0, comment='是否主键(0正常 1停用)')
|
||
|
dict_dft = Column(String(50), nullable=True, default='', comment='数据类型')
|
||
|
dict_ft = Column(String(50), nullable=True, default='', comment='字段类型')
|
||
|
dict_bc = Column(String(500), nullable=True, default='', comment='业务含义')
|
||
|
dict_al = Column(String(100), nullable=True, default='', comment='别名')
|
||
|
memo = Column(String(100), nullable=True, default='', comment='备忘录')
|
||
|
dict_sg = Column(String(1), nullable=True, default='0', comment='安全分级')
|
||
|
status = Column(String(1), nullable=True, default='0', comment='状态(0正常 1停用)')
|
||
|
del_flag = Column(String(1), nullable=True, default='0', comment='删除标志(0代表存在 2代表删除)')
|
||
|
create_by = Column(String(64), nullable=True, default='', comment='创建者')
|
||
|
create_time = Column(DateTime, nullable=True, default=datetime.now(), comment='创建时间')
|
||
|
update_by = Column(String(64), nullable=True, default='', comment='更新者')
|
||
|
update_time = Column(DateTime, nullable=True, default=datetime.now(), comment='更新时间')
|
||
|
remark = Column(String(500), nullable=True, default='', comment='备注')
|
||
|
order_asc = Column(Integer, default=0, comment='排序号')
|