This commit is contained in:
roma-dxunvrs
2025-11-30 12:38:46 +03:00
commit 27466a255f
17 changed files with 250 additions and 0 deletions

0
app/schemas/__init__.py Normal file
View File

5
app/schemas/token.py Normal file
View File

@@ -0,0 +1,5 @@
from pydantic import BaseModel
class TokenInfo(BaseModel):
access_token: str
token_type: str

10
app/schemas/user.py Normal file
View File

@@ -0,0 +1,10 @@
from pydantic import BaseModel, EmailStr, ConfigDict
class UserSchema(BaseModel):
model_config = ConfigDict(strict=True)
username: str
password: bytes
email: EmailStr | None = None
active: bool = True