test一轮完成的版本
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
#老师管理模块 刘盼
|
||||
from sqlalchemy import create_engine
|
||||
from database import Base, engine
|
||||
|
||||
class Teacher(Base):
|
||||
__tablename__ = 'wl_teacher'
|
||||
t_id = Column(Integer, primary_key=True, autoincrement=True)
|
||||
teacher_no = Column(String(20), unique=True, nullable=False)
|
||||
t_no = Column(String(20), unique=True, nullable=False)
|
||||
t_name = Column(String(50), nullable=False)
|
||||
t_phone = Column(String(20), unique=True, nullable=True)
|
||||
t_email = Column(String(20), unique=False)
|
||||
|
||||
Reference in New Issue
Block a user