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.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							1.0 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							1.0 KiB
						
					
					
				| from datetime import datetime | |
| from sqlalchemy import Column, DateTime, Integer, String | |
| from config.database import Base | |
| 
 | |
| 
 | |
| class SysPost(Base): | |
|     """ | |
|     岗位信息表 | |
|     """ | |
| 
 | |
|     __tablename__ = 'sys_post' | |
| 
 | |
|     post_id = Column(Integer, primary_key=True, autoincrement=True, comment='岗位ID') | |
|     post_code = Column(String(64), nullable=False, comment='岗位编码') | |
|     post_name = Column(String(50), nullable=False, comment='岗位名称') | |
|     post_sort = Column(Integer, nullable=False, comment='显示顺序') | |
|     status = Column(String(1), nullable=False, default='0', comment='状态(0正常 1停用)') | |
|     create_by = Column(String(64), default='', comment='创建者') | |
|     create_time = Column(DateTime, nullable=True, default=datetime.now(), comment='创建时间') | |
|     update_by = Column(String(64), default='', comment='更新者') | |
|     update_time = Column(DateTime, nullable=True, default=datetime.now(), comment='更新时间') | |
|     remark = Column(String(500), nullable=True, default=None, comment='备注')
 | |
| 
 |