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.
30 lines
1.8 KiB
30 lines
1.8 KiB
from sqlalchemy import Column, Integer, String, DateTime
|
|
from config.database import Base
|
|
from datetime import datetime
|
|
|
|
class SysNdstand(Base):
|
|
"""
|
|
数据标准表
|
|
"""
|
|
__tablename__ = 'sys_ndstand'
|
|
|
|
onum = Column(Integer, primary_key=True, autoincrement=True, comment='序号')
|
|
data_std_no = Column(String(50), nullable=False, comment='数据标准编号')
|
|
data_std_cn_name = Column(String(50), nullable=False, comment='数据标准中文名')
|
|
data_std_eng_name = Column(String(50), nullable=False, comment='数据标准英文')
|
|
belt_scop = Column(String(50), nullable=False, comment='所属范围')
|
|
busi_defn = Column(String(50), nullable=False, comment='业务定义')
|
|
data_std_schm = Column(String(50), nullable=False, comment='数据标准主题')
|
|
std_pri_clas = Column(String(50), nullable=False, comment='标准一级分类')
|
|
std_scd_clas = Column(String(50), nullable=False, comment='标准二级分类')
|
|
std_thre_clas = Column(String(50), nullable=False, comment='标准三级分类')
|
|
data_sec_fifd = Column(String(50), nullable=False, comment='数据安全分级')
|
|
data_clas = Column(String(50), nullable=False, comment='数据类别')
|
|
val_scop = Column(String(50), nullable=False, comment='取值范围')
|
|
fddict_col_no = Column(String(50), nullable=False, comment='代码编号')
|
|
status = Column(String(1), nullable=False, default='0', comment='状态(0正常 1停用)')
|
|
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='备注')
|