sipi-web/sipi-app/schemas/user.py

22 lines
235 B
Python
Raw Permalink Normal View History

2024-07-12 11:44:02 +00:00
from pydantic import BaseModel
class UserBase(BaseModel):
username: str
class UserCreate(UserBase):
pass
class UserRead(UserBase):
id: int
class UserRemove(UserBase):
pass
class UserChange(UserBase):
pass