Coverage for modules\notifications\schemas.py: 100%
14 statements
« prev ^ index » next coverage.py v7.16.0, created at 2026-09-05 09:25 +0800
« prev ^ index » next coverage.py v7.16.0, created at 2026-09-05 09:25 +0800
1from typing import Optional
2from pydantic import BaseModel, ConfigDict
3from uuid import UUID
4from datetime import datetime
6class NotificationOut(BaseModel):
7 id: UUID
8 type: str
9 title: str
10 message: str
11 link_url: Optional[str] = None
12 is_read: bool
13 read_at: Optional[datetime] = None
14 created_at: datetime
16 model_config = ConfigDict(from_attributes=True)