nb
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)
|
||||
Reference in New Issue
Block a user