|  |  |  | from sqlalchemy import Column, Integer, String, DateTime, Boolean,BigInteger | 
					
						
							|  |  |  | 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(200), 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(50), default=None, comment='归属系统') | 
					
						
							|  |  |  |     sys_id = Column(Integer, default=None, comment='归属系统Id') | 
					
						
							|  |  |  |     class_id = Column(String(10), default=None, comment='代码类型(code:代码 codeItem:代码项)') | 
					
						
							|  |  |  |     parent_id = Column(String(50), default=None, comment='父id') | 
					
						
							|  |  |  |     code_map_id = Column(String(50), default=None,comment='标准代码Id') | 
					
						
							|  |  |  |     code_map_num = Column(String(50), default=None, comment='标准代码编号') | 
					
						
							|  |  |  |     code_map_name = Column(String(200), default=None, comment='标准代码值') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class DataStdDict(Base): | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     标准字典表 (Standard Code Table) | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     __tablename__ = 't_datastd_dict'  # 表名为 t_datastd_dict | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  |     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='更新时间') | 
					
						
							|  |  |  |     dict_num = Column(String(50), default=None, comment='字典编号') | 
					
						
							|  |  |  |     dict_code = Column(String(50), default=None, comment='字典英文名') | 
					
						
							|  |  |  |     dict_name = Column(String(200), default=None, comment='字典中文名') | 
					
						
							|  |  |  |     dict_level = Column(String(10), default=None, comment='字典归属(sys:系统级 company:公司级)') | 
					
						
							|  |  |  |     dict_type = Column(String(1), default=None, comment='字典类型(0:基础数据 1:指标数据)') | 
					
						
							|  |  |  |     sys_name = Column(String(50), default=None, comment='归属系统') | 
					
						
							|  |  |  |     sys_id = Column(Integer, default=None, comment='归属系统Id') | 
					
						
							|  |  |  |     dict_menu = Column(String(200), default=None, comment='字典业务定义') | 
					
						
							|  |  |  |     data_type = Column(String(20), default=None, comment='数据类型') | 
					
						
							|  |  |  |     std_code = Column(String(50), default=None, comment='数据标准编号') | 
					
						
							|  |  |  |     std_name = Column(String(50), default=None, comment='数据标准名称') | 
					
						
							|  |  |  |     dict_status = Column(String(1), default=None, comment='字典状态(1:有效 0:无效)') | 
					
						
							|  |  |  |     buss_dept_id = Column(BigInteger, default=None, comment='业务认责部门') | 
					
						
							|  |  |  |     tech_dept_id = Column(BigInteger, default=None, comment='技术认责部门') | 
					
						
							|  |  |  |     buss_user = Column(String(20), default=None, comment='业务认责人员') | 
					
						
							|  |  |  |     tech_user = Column(String(20), default=None, comment='技术认责人员') |