Initial commit
This commit is contained in:
commit
8b18f2439c
13 changed files with 960 additions and 0 deletions
6
schemas/user_schemas.py
Normal file
6
schemas/user_schemas.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from tortoise.contrib.pydantic import pydantic_model_creator
|
||||
from db.models.user import User
|
||||
|
||||
UserCreateInfo = pydantic_model_creator(User, name="UserCreateInfo", exclude=("id", "first_login"))
|
||||
UserInfo = pydantic_model_creator(User, name="UserInfo", exclude=("id", "password"))
|
||||
UserDatabase = pydantic_model_creator(User, name="User")
|
Loading…
Add table
Add a link
Reference in a new issue