14 lines
313 B
Python
14 lines
313 B
Python
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
|