diff --git a/PythonProject/model/all_model.py b/PythonProject/model/all_model.py index 55a9790..cc21a42 100644 --- a/PythonProject/model/all_model.py +++ b/PythonProject/model/all_model.py @@ -60,13 +60,13 @@ class ClassManagement(Base): class_name = Column(String(100), comment='班级名字') - start_class_date = Column(DATE,comment='开课时间') + start_class_date = Column(Date,default=date.today,comment='开课时间') head_teacher_id= Column(Integer,ForeignKey('wl_teacher.teac_id'),comment='班主任') class_teacher_id = Column(Integer,ForeignKey('wl_teacher.teac_id'),comment='授课教师') - Entry_date= Column(Date,default=date.today,comment='录入时间') + Entry_date= Column(Date,default=datetime.now,comment='录入时间') update_date = Column(DATETIME,default=datetime.now,onupdate=datetime.now,comment='更新时间')