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
1.7 KiB
33 lines
1.7 KiB
from datetime import datetime
|
|
from sqlalchemy import Column, String, Integer, DateTime, TIMESTAMP, func
|
|
from config.database import Base
|
|
|
|
|
|
# class MetadataClas(Base):
|
|
# """
|
|
# 标签信息表
|
|
# """
|
|
# __tablename__ = 't_metadata_clas'
|
|
|
|
# clas_onum = Column(Integer, primary_key=True, default=0, comment='标签序号')
|
|
# clas_pri_clas = Column(String(50), default=None, comment='标签一级分类')
|
|
# clas_scd_clas = Column(String(50), default=None, comment='标签二级分类')
|
|
# clas_thre_clas = Column(String(50), default=None, comment='标签三级分类')
|
|
# clas_name = Column(String(200), default=None, comment='标签名称')
|
|
# clas_tmpl = Column(String(200), default=None, comment='标签模版')
|
|
# clas_eff_flag = Column(String(1), default=None, comment='标签有效标志')
|
|
# rec_subm_prsn = Column(String(64), default=None, comment='记录提交人')
|
|
# upd_time = Column(TIMESTAMP, default=func.now(), onupdate=func.now(), nullable=True, comment='更新时间')
|
|
class MetadataSec(Base):
|
|
"""
|
|
数据安全配置表
|
|
"""
|
|
__tablename__ = 't_metadata_sec'
|
|
|
|
onum = Column(String(36), primary_key=True, comment='唯一编号')
|
|
sec_eff_flag = Column(String(1), default=None, comment='有效标志')
|
|
rec_subm_prsn = Column(String(64), default=None, comment='记录提交人')
|
|
upd_time = Column(TIMESTAMP, default=func.now(), onupdate=func.now(), nullable=True, comment='更新时间')
|
|
sec_level_name = Column(String(50), default=None, comment='等级名称')
|
|
sec_level_desc = Column(String(200), default=None, comment='等级说明')
|
|
sec_level_summary = Column(String(200), comment='等级简介')
|