班级表
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
from sqlalchemy import DATETIME,Column,Integer,String,Date
|
||||
from datetime import datetime,date
|
||||
from util.database import Base,engine
|
||||
|
||||
|
||||
|
||||
class ClassManagement(Base):
|
||||
|
||||
__tablename__ = "wl_class"
|
||||
|
||||
id= Column(Integer,autoincrement=True,comment='id')
|
||||
|
||||
class_id= Column(Integer, primary_key=True ,comment='班级编号')
|
||||
|
||||
class_name = Column(String(100), comment='班级名字')
|
||||
|
||||
start_class_date=Column(Date,default=date.today,comment='开班时间')
|
||||
|
||||
plan_over_class_date = Column(Date,default=date.today,comment='计划结课时间')
|
||||
|
||||
real_over_class_date= Column(Date,default=date.today,comment='实际结课时间')
|
||||
|
||||
Entry_date = Column(DATETIME, default=datetime.now, comment='数据创建时间')
|
||||
|
||||
update_date = Column(DATETIME,default=datetime.now,onupdate=datetime.now,comment='数据更新时间')
|
||||
|
||||
delete_status = Column(Integer,default=0,comment='删除状态:0未删除,1已删除')
|
||||
|
||||
delete_time = Column(DATETIME,comment='删除时间')
|
||||
Reference in New Issue
Block a user