修改表命名

This commit is contained in:
resonate
2022-01-23 14:29:15 +08:00
parent 4eeb2cfec9
commit 56dcc7eff8
13 changed files with 35 additions and 50 deletions
-22
View File
@@ -1,22 +0,0 @@
from common.BaseModel import BaseBaseModel, Column, String, Integer
from pydantic import BaseBaseModel as PBaseModel
class User(BaseBaseModel):
__tablename__ = 'admin_user'
id = Column(Integer, primary_key=True, autoincrement=True, comment='用户ID')
username = Column(String(20), comment='用户名')
class Test(BaseBaseModel):
__tablename__ = 'admin_test'
id = Column(Integer, primary_key=True, autoincrement=True, comment='ID')
name = Column(String(20), comment='')
class Userschema(PBaseModel):
id: int
username: str
class Config:
orm_mode = True