Spaces:
Running on T4
Running on T4
File size: 455 Bytes
fe40b87 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | """N06 to N09 bodies."""
from datetime import datetime
from uuid import UUID
from pydantic import Field
from app.common.schemas import RequestModel, ResponseModel
class NotificationOut(ResponseModel):
id: UUID
kind: str
title: str
body: str
at: datetime
read: bool
target: dict[str, str]
class UnreadCount(ResponseModel):
count: int = Field(ge=0)
class ReadAllIn(RequestModel):
through: datetime | None = None
|