from datetime import datetime from typing import Optional, List from pydantic import BaseModel class NotificationResponse(BaseModel): id: str type: str reference_type: str reference_id: str title: str message: Optional[str] is_read: bool created_at: datetime read_at: Optional[datetime] class Config: from_attributes = True class NotificationListResponse(BaseModel): notifications: List[NotificationResponse] total: int unread_count: int class UnreadCountResponse(BaseModel): unread_count: int