22 lines
895 B
Python
22 lines
895 B
Python
# Base=...
|
|
|
|
class Staff_Model(Base):
|
|
__tablename__ = 'wl_staff'
|
|
id=Column(Integer,primary_key=True,autoincrement=True,comment='序号')
|
|
staff_id=Column(Integer,comment='工号')
|
|
staff_name=Column(String(100),comment='姓名')
|
|
staff_gender=Column(String(100),comment='性别')
|
|
staff_id_card=Column(Integer,comment='身份证号')
|
|
staff_native_place=Column(String(100),comment='籍贯')
|
|
staff_salary=Column(Integer,comment='薪资')
|
|
staff_job_type=Column(String(100),comment='岗位类型')
|
|
staff_job_level=Column(String(100),comment='岗位级别')
|
|
create_time=Column(DATETIME,default=datetime.now,comment='创建时间')
|
|
update_time=Column(DATETIME,default=datetime.now,comment='更新时间')
|
|
delete_status=Column(Integer,default=0,comment='删除状态:0未删除,1已删除')
|
|
delete_time=Column(DATETIME,comment='删除时间')
|
|
|
|
|
|
|
|
|