更新同步 所有库名、表名、model字段名 等,导致需要同步修改业务代码,现更新到update的request、api和dao了,暂存。

This commit is contained in:
Orangeeee
2026-09-21 23:11:45 +08:00
parent 1f87616004
commit fe7c95fa78
5 changed files with 138 additions and 74 deletions
+4 -4
View File
@@ -4,7 +4,7 @@ import datetime
from students.databases import *
from datetime import datetime
from sqlalchemy.dialects.mysql import DATETIME
from sqlalchemy import Enum
from students.schema.students_request import SexEnum
class Students(Base):
__tablename__ = 'students'
@@ -13,13 +13,13 @@ class Students(Base):
, autoincrement=True
, comment='学生ID,自增主键'
)
num = Column(Integer
num = Column(String(50)
, nullable=False
, unique=True
, comment='学生编号'
)
name = Column(String(20)
name = Column(String(50)
, comment='学生姓名'
, nullable=False )
@@ -27,7 +27,7 @@ class Students(Base):
, comment='年龄'
, nullable=False)
sex = Column(Enum('男','女')
sex = Column(Enum(SexEnum)
, comment='性别'
, nullable=False)