Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
class WlScore(Base):
|
||||
__tablename__ = 'wl_score'
|
||||
|
||||
score_id = Column(Integer
|
||||
,primary_key=True
|
||||
,autoincrement=True
|
||||
,comment='序号'
|
||||
)
|
||||
|
||||
stu_id = Column( Integer
|
||||
,ForeignKey('wl_student.stu_id')
|
||||
,comment='学生编号')
|
||||
|
||||
class_id = Colimn( Integer
|
||||
,ForeignKey('wl_class.class_id')
|
||||
,comment='学生编号')
|
||||
|
||||
exam_order = Column(Integer
|
||||
, nullable=False
|
||||
, comment="考核序次")
|
||||
|
||||
score=Column(Numeric(5, 2)
|
||||
, comment="成绩")
|
||||
|
||||
create_time = Column(DATETIME
|
||||
, nullable=False
|
||||
, default=datetime.now
|
||||
, comment="作成时间")
|
||||
|
||||
update_time = Column(DATETIME
|
||||
, nullable=False
|
||||
, default=datetime.now
|
||||
, onupdate=datetime.now
|
||||
, comment="更新时间")
|
||||
|
||||
delete_status = Column(
|
||||
Integer,default=0,comment='删除状态:0未删除,1已删除')
|
||||
|
||||
delete_time = Column(DATETIME,comment='删除时间')
|
||||
|
||||
|
||||
|
||||
Base.metadata.create_all(engine)
|
||||
@@ -0,0 +1,41 @@
|
||||
from ast import Str
|
||||
|
||||
|
||||
class Interview(Base):
|
||||
__tablename__ = 'wl_Interview'
|
||||
|
||||
interview_id = Column(Integer
|
||||
,primary_key=True
|
||||
,autoincrement=True
|
||||
,comment='序号'
|
||||
)
|
||||
|
||||
interview_time = Column(DATETIME
|
||||
, nullable=False
|
||||
, comment="面试时间")
|
||||
|
||||
stu_id = Column( Integer
|
||||
, ForeignKey('wl_student.stu_id')
|
||||
, comment='学生编号')
|
||||
|
||||
Interview_room = Column(Str
|
||||
, nullable=False
|
||||
, comment="面试间")
|
||||
|
||||
business_id = Column(Integer
|
||||
, ForeignKey('wl_business.business_id')
|
||||
, comment='企业id')
|
||||
|
||||
create_time = Column(DATETIME
|
||||
, nullable=False
|
||||
, default=datetime.now
|
||||
, comment="数据创建时间")
|
||||
|
||||
update_time = Column(DATETIME
|
||||
, nullable=False
|
||||
, default=datetime.now
|
||||
, onupdate=datetime.now
|
||||
, comment="数据更新时间")
|
||||
|
||||
delete_status = Column(
|
||||
Integer, default=0, comment='删除状态:0未删除,1已删除')
|
||||
@@ -0,0 +1,21 @@
|
||||
# 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='删除时间')
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user