2022/1/23

This commit is contained in:
resonate
2022-01-23 00:42:32 +08:00
parent 0bec251f08
commit 28d503eb8b
4 changed files with 87 additions and 8 deletions
+7
View File
@@ -8,8 +8,15 @@ class User(BaseModel):
username = Column(String(20), comment='用户名')
class Test(BaseModel):
__tablename__ = 'admin_test'
id = Column(Integer, primary_key=True, autoincrement=True, comment='ID')
name = Column(String(20), comment='')
class Userschema(PModel):
id: int
username: str
class Config:
orm_mode = True