增改表
This commit is contained in:
@@ -8,23 +8,34 @@ class Gender(str,enum.Enum):
|
||||
f = '女'
|
||||
|
||||
class Tea(Base):
|
||||
__tablename__ = 'teachers_info'
|
||||
tea_id = Column(Integer
|
||||
__tablename__ = 'teachers'
|
||||
id = Column(Integer
|
||||
, primary_key=True
|
||||
,nullable=False
|
||||
,autoincrement=True
|
||||
,comment='老师id')
|
||||
tea_name = Column(String(50)
|
||||
,comment='id')
|
||||
name = Column(String(50)
|
||||
,nullable=False
|
||||
,comment='老师姓名')
|
||||
tea_sex = Column(Enum(Gender),default='未知'
|
||||
,comment='老师性别')
|
||||
,comment='姓名')
|
||||
sex = Column(Enum(Gender),default='未知'
|
||||
,comment='性别')
|
||||
class_id = Column(Integer
|
||||
,nullable=False
|
||||
,comment='班级id')
|
||||
class_sub = Column(String(50)
|
||||
sub = Column(String(50)
|
||||
,nullable=False
|
||||
,comment='教学科目')
|
||||
home_place = Column(String(50)
|
||||
,comment='家乡')
|
||||
specialty = Column(String(50)
|
||||
,comment='专业')
|
||||
start_time = Column(DateTime,comment='入职时间')
|
||||
work_experience = Column(String(50)
|
||||
,comment='工作经验')
|
||||
education = Column(String(50)
|
||||
,comment='学历')
|
||||
collage = Column(String(50)
|
||||
,comment='毕业院校')
|
||||
create_date = Column(DateTime
|
||||
,default=datetime.now
|
||||
,comment='创建时间')
|
||||
|
||||
Reference in New Issue
Block a user