TW-Requests/fastapi_app/schemas/users.py
2024-07-15 10:15:51 +03:00

14 lines
162 B
Python

from pydantic import BaseModel
class UsersBase(BaseModel):
username: str
class UsersCreate(UsersBase):
pass
class UsersRead(UsersBase):
id: int