Spaces:
Running on T4
Running on T4
Download backend/app/modules/notifications/schemas.py from modventures/baseball-engine: direct link, hf CLI and curl.
- Browser
- Download file 455 Bytes
-
https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/backend/app/modules/notifications/schemas.py
- Command line
-
hf download hf://spaces/modventures/baseball-engine/backend/app/modules/notifications/schemas.py
-
curl -L -o schemas.py https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/backend/app/modules/notifications/schemas.py
455 Bytes
| """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 | |