Files
SigHej/backend/app/models/session.py

14 lines
313 B
Python
Raw Permalink Normal View History

2026-05-12 18:21:25 +02:00
from datetime import datetime
from pydantic import BaseModel, Field
class SessionCreate(BaseModel):
ble_token: str = Field(..., min_length=1, max_length=128)
interests: list[str] = Field(..., min_length=1, max_length=20)
class SessionResponse(BaseModel):
session_id: str
expires_at: datetime