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.
		
		
		
		
			
				
					23 lines
				
				1.1 KiB
			
		
		
			
		
	
	
					23 lines
				
				1.1 KiB
			| 
								 
											2 years ago
										 
									 | 
							
								from datetime import datetime
							 | 
						||
| 
								 
											1 year ago
										 
									 | 
							
								from sqlalchemy import Column, DateTime, Integer, String
							 | 
						||
| 
								 | 
							
								from config.database import Base
							 | 
						||
| 
								 
											2 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class SysConfig(Base):
							 | 
						||
| 
								 | 
							
								    """
							 | 
						||
| 
								 | 
							
								    参数配置表
							 | 
						||
| 
								 | 
							
								    """
							 | 
						||
| 
								 
											1 year ago
										 
									 | 
							
								
							 | 
						||
| 
								 
											2 years ago
										 
									 | 
							
								    __tablename__ = 'sys_config'
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    config_id = Column(Integer, primary_key=True, autoincrement=True, comment='参数主键')
							 | 
						||
| 
								 | 
							
								    config_name = Column(String(100), nullable=True, default='', comment='参数名称')
							 | 
						||
| 
								 | 
							
								    config_key = Column(String(100), nullable=True, default='', comment='参数键名')
							 | 
						||
| 
								 | 
							
								    config_value = Column(String(500), nullable=True, default='', comment='参数键值')
							 | 
						||
| 
								 | 
							
								    config_type = Column(String(1), nullable=True, default='N', comment='系统内置(Y是 N否)')
							 | 
						||
| 
								 | 
							
								    create_by = Column(String(64), nullable=True, default='', comment='创建者')
							 | 
						||
| 
								 | 
							
								    create_time = Column(DateTime, nullable=True, default=datetime.now(), comment='创建时间')
							 | 
						||
| 
								 | 
							
								    update_by = Column(String(64), nullable=True, default='', comment='更新者')
							 | 
						||
| 
								 | 
							
								    update_time = Column(DateTime, nullable=True, default=datetime.now(), comment='更新时间')
							 | 
						||
| 
								 
											1 year ago
										 
									 | 
							
								    remark = Column(String(500), nullable=True, default=None, comment='备注')
							 |