test一轮完成的版本

This commit is contained in:
2026-09-12 20:55:36 +08:00
parent 004fd75a46
commit c4ae803a34
8 changed files with 50 additions and 68 deletions
+1 -2
View File
@@ -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)