Spaces:
Running
Running
Download app/schemas/notification.py from MonteeqOrg/backend: direct link, hf CLI and curl.
- Browser
- Download file 444 Bytes
-
https://huggingface.co/spaces/MonteeqOrg/backend/resolve/main/app/schemas/notification.py
- Command line
-
hf download hf://spaces/MonteeqOrg/backend/app/schemas/notification.py
-
curl -L -o notification.py https://huggingface.co/spaces/MonteeqOrg/backend/resolve/main/app/schemas/notification.py
444 Bytes
| from pydantic import BaseModel, ConfigDict | |
| from datetime import datetime | |
| from typing import Optional | |
| class NotificationBase(BaseModel): | |
| message: str | |
| link: Optional[str] = None | |
| type: Optional[str] = "info" | |
| class NotificationCreate(NotificationBase): | |
| user_id: int | |
| class Notification(NotificationBase): | |
| id: int | |
| user_id: int | |
| is_read: bool | |
| created_at: datetime | |
| model_config = ConfigDict(from_attributes=True) | |