TW-Requests/fastapi_app/schemas/users.py

14 lines
162 B
Python
Raw Normal View History

2024-07-15 07:15:51 +00:00
from pydantic import BaseModel
class UsersBase(BaseModel):
username: str
class UsersCreate(UsersBase):
pass
class UsersRead(UsersBase):
id: int