eksplicit mapping af envs
This commit is contained in:
13
backend/app/models/session.py
Normal file
13
backend/app/models/session.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user