Initial commit: Базовая структура сайта

This commit is contained in:
2026-02-11 12:06:30 +05:00
parent b41f161e8f
commit d9a2ad7f15
62 changed files with 3901 additions and 0 deletions

21
backend/app/schemas/auth.py Executable file
View File

@@ -0,0 +1,21 @@
"""
Схемы для аутентификации
"""
from pydantic import BaseModel
from typing import Optional
class LoginRequest(BaseModel):
login: str
password: str
class Token(BaseModel):
access_token: str
token_type: str = "bearer"
class TokenData(BaseModel):
user_id: Optional[int] = None
role: Optional[str] = None