diff --git a/cla_model.py b/cla_model.py new file mode 100644 index 0000000..acd65eb --- /dev/null +++ b/cla_model.py @@ -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='删除时间') \ No newline at end of file