from pydantic import BaseModel


# ── Requests ──────────────────────────────────────────────────────────────────

class PreferenceUpdate(BaseModel):
    notificationsActivees: bool | None = None
    notificationsEmail: bool | None = None
    notificationsPush: bool | None = None
    langue: str | None = None
    theme: str | None = None
    parametres: dict | None = None


# ── Responses ─────────────────────────────────────────────────────────────────

class PreferenceResponse(BaseModel):
    id: str
    utilisateurId: str
    notificationsActivees: bool
    notificationsEmail: bool
    notificationsPush: bool
    langue: str
    theme: str
    parametres: dict | None = None
