ЛР2: PostgreSQL, сессии (Basic + Bearer), Compose, миграции
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-10-16 11:11:00 +03:00
parent 65003b6119
commit 4937d6d4e8
56 changed files with 1969 additions and 26 deletions
+13
View File
@@ -0,0 +1,13 @@
from typing import Literal
from pydantic import BaseModel
from schemas.users_schemas import UserResponse
from utils.dates import UtcDatetime
class SessionResponse(BaseModel):
token: str
token_type: Literal["Bearer"] = "Bearer"
expires_at: UtcDatetime
user: UserResponse