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.
		
		
		
		
		
			
		
			
				
					
					
						
							57 lines
						
					
					
						
							3.1 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							57 lines
						
					
					
						
							3.1 KiB
						
					
					
				| from sqlalchemy import Column, Integer, String, DateTime, Boolean | |
| from config.database import Base | |
| 
 | |
| 
 | |
| 
 | |
| class MetaSecurityCol(Base): | |
|     """ | |
|     数据源控制表 | |
|     """ | |
|     __tablename__ = 'meta_security_col' | |
| 
 | |
|     colId = 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='更新时间') | |
|     dbRName = Column(String(50), default=None, comment='数据源名称') | |
|     dbRID = Column(Integer, nullable=True, default=None, comment='数据源ID') | |
|     dbSName = Column(String(50), default=None, comment='模式名称') | |
|     dbTName = Column(String(200), default=None, comment='表名称') | |
|     dbCName = Column(String(500), default=None, comment='字段名称') | |
|     ctrl_type = Column(String(1), default=None, comment='控制类型(0:反向 1:正向)') | |
|     obj_type = Column(String(1), default=None, comment='对象类型(0:角色 1:用户)') | |
|     generate_type = Column(String(1), default=None, comment='生成方式(0:手工 1:业务域)') | |
|     obj_value = Column(Integer, default=None, comment='角色值') | |
|     obj_name = Column(String(50), default=None, comment='字段名称') | |
|     isStop = Column(Boolean, nullable=True, default=None, comment='是否停用(0:运行 1:停用)') | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| class MetaSecurityRow(Base): | |
|     """ | |
|     数据源行控制表 | |
|     """ | |
|     __tablename__ = 'meta_security_row' | |
| 
 | |
|     rowId = 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='更新时间') | |
|     dbRName = Column(String(50), default=None, comment='数据源名称') | |
|     dbRID = Column(Integer, nullable=True, default=None, comment='数据源ID') | |
|     dbSName = Column(String(50), default=None, comment='模式名称') | |
|     dbTName = Column(String(50), default=None, comment='表名称') | |
|     dbCName = Column(String(50), default=None, comment='字段名称') | |
|     ctrl_type = Column(String(1), default=None, comment='控制类型(0:控制值 1:控制表 2:控制程序)') | |
|     obj_type = Column(String(1), default=None, comment='对象类型(0:角色 1:用户)') | |
|     obj_value = Column(String(50), default=None, comment='角色值') | |
|     obj_name = Column(String(50), default=None, comment='字段名称') | |
|     isStop = Column(Boolean, nullable=True, default=None, comment='是否停用(0:运行 1:停用)') | |
|     ctrl_value = Column(String(100), default=None, comment='控制值') | |
|     ctrl_table = Column(String(100), default=None, comment='控制表') | |
|     ctrl_col = Column(String(100), default=None, comment='控制字段') | |
|     ctrl_system = Column(String(100), default=None, comment='控制程序') | |
| 
 | |
| 
 |