"""Notification schemas."""
from __future__ import annotations
import uuid
from datetime import datetime
from pydantic import BaseModel


class NotificationConfigOut(BaseModel):
    id: uuid.UUID
    user_id: uuid.UUID
    event_type: str
    channel: str
    enabled: bool
    created_at: datetime

    model_config = {"from_attributes": True}


class NotificationConfigUpdate(BaseModel):
    enabled: bool
