Initial monorepo structure

This commit is contained in:
Арсентьев Александр
2026-08-06 11:23:37 +03:00
commit 07dbde2a0e
240 changed files with 212717 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
"""Auth schemas."""
from pydantic import BaseModel, Field
from typing import Optional
from datetime import datetime
class TokenRequest(BaseModel):
"""Token request schema."""
email: str
password: str
class TokenResponse(BaseModel):
"""Token response schema."""
access_token: str
token_type: str = "bearer"
expires_in: int
user: dict
class UserRegisterRequest(BaseModel):
"""User registration request schema."""
email: str
password: str = Field(..., min_length=6)
first_name: str = Field(..., min_length=1, max_length=100)
last_name: str = Field(..., min_length=1, max_length=100)
phone: Optional[str] = None
role_id: Optional[int] = None