2022/1/22

This commit is contained in:
resonate
2022-01-22 20:07:07 +08:00
parent 027481ce56
commit 0bec251f08
22 changed files with 463 additions and 43 deletions
+15
View File
@@ -0,0 +1,15 @@
from common.model import BaseModel, Column, String, Integer
from pydantic import BaseModel as PModel
class User(BaseModel):
__tablename__ = 'admin_user'
id = Column(Integer, primary_key=True, autoincrement=True, comment='用户ID')
username = Column(String(20), comment='用户名')
class Userschema(PModel):
id: int
username: str
class Config:
orm_mode = True