diff --git a/PythonProject/model/all_model.py b/PythonProject/model/all_model.py index cc21a42..69f6c99 100644 --- a/PythonProject/model/all_model.py +++ b/PythonProject/model/all_model.py @@ -66,7 +66,7 @@ class ClassManagement(Base): class_teacher_id = Column(Integer,ForeignKey('wl_teacher.teac_id'),comment='授课教师') - Entry_date= Column(Date,default=datetime.now,comment='录入时间') + Entry_date= Column(DATETIME,default=datetime.now,comment='录入时间') update_date = Column(DATETIME,default=datetime.now,onupdate=datetime.now,comment='更新时间')