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.
41 lines
2.0 KiB
41 lines
2.0 KiB
from sqlalchemy import Column, Integer, String, DateTime, Boolean
|
|
from config.database import Base
|
|
|
|
# 数据标准模块相关表
|
|
|
|
class DataStdCode(Base):
|
|
"""
|
|
标准代码表 (Standard Code Table)
|
|
"""
|
|
__tablename__ = 't_datastd_code'
|
|
|
|
id = Column(String(50), primary_key=True, comment='标准代码Id')
|
|
create_by = Column(String(20), default='', comment='创建者')
|
|
create_time = Column(DateTime, nullable=True, default=None, comment='创建时间')
|
|
update_by = Column(String(20), default='', comment='更新者')
|
|
update_time = Column(DateTime, nullable=True, default=None, comment='更新时间')
|
|
code_num = Column(String(50), default=None, comment='标准代码编号')
|
|
code_name = Column(String(50), default=None, comment='标准代码值')
|
|
code_type = Column(String(10), default=None, comment='标准代码类型(sys:系统级 company:公司级)')
|
|
code_status = Column(String(1), default=None, comment='代码状态(0:有效 1:无效)')
|
|
sys_name = Column(String(500), default=None, comment='归属系统')
|
|
sys_id = Column(Integer, default=None, comment='归属系统Id')
|
|
|
|
|
|
class DataStdCodeItem(Base):
|
|
"""
|
|
标准代码项表 (Standard Code Item Table)
|
|
"""
|
|
__tablename__ = 't_datastd_code_item'
|
|
|
|
id = Column(String(50), primary_key=True, comment='标准代码Id')
|
|
create_by = Column(String(20), default='', comment='创建者')
|
|
create_time = Column(DateTime, nullable=True, default=None, comment='创建时间')
|
|
update_by = Column(String(20), default='', comment='更新者')
|
|
update_time = Column(DateTime, nullable=True, default=None, comment='更新时间')
|
|
code_num = Column(String(50), default=None, comment='代码值')
|
|
code_name = Column(String(50), default=None, comment='代码值名称')
|
|
parent_id = Column(String(10), default=None, comment='代码id')
|
|
code_status = Column(String(1), default=None, comment='代码状态(0:有效 1:无效)')
|
|
code_mean = Column(String(500), default=None, comment='代码含义')
|
|
|
|
|