34 lines
889 B
Python
34 lines
889 B
Python
|
|
from sqlalchemy import DateTime,Date,Column,Integer,ForeignKey,String
|
|
from util.database import Base,engine
|
|
|
|
class ClassManagement(Base):
|
|
__tablename__ = "wl_class"
|
|
|
|
class_id= Column(Integer, primary_key=True, autoincrement=True,comment='班级编号')
|
|
|
|
class_name = Column(String(100), comment='班级姓名')
|
|
|
|
start_class_date = Column(Date,comment='开课时间')
|
|
|
|
head_teacher_id= Column(Integer,ForeignKey('wl_teacher.id'),comment='班主任')
|
|
|
|
class_teacher_id = Column(Integer,ForeignKey('wl_teacher.id'),comment='授课教师')
|
|
|
|
Entry_date= Column(DateTime,comment='录入时间')
|
|
|
|
update_date = Column(DateTime,comment='更新时间')
|
|
|
|
delete_status = Column(Integer,default=0,comment='删除状态:0未删除,1已删除')
|
|
|
|
delete_time = Column(DateTime, nullable=True, comment='删除时间')
|
|
|
|
Base.metadata.create_all(engine)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|