Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /rubelw_OSSS /src /OSSS /schemas /document_notification.py
| # OSSS/schemas/document_notification.py | |
| from __future__ import annotations | |
| from typing import Optional, List | |
| from datetime import datetime | |
| from pydantic import Field | |
| from OSSS.schemas.base import APIModel | |
| class DocumentNotificationBase(APIModel): | |
| document_id: str = Field(...) | |
| user_id: str = Field(...) | |
| subscribed: Optional[bool] = None # allow server_default true to apply | |
| last_sent_at: Optional[datetime] = None | |
| class DocumentNotificationCreate(DocumentNotificationBase): pass | |
| class DocumentNotificationReplace(DocumentNotificationBase): pass | |
| class DocumentNotificationPatch(APIModel): | |
| subscribed: Optional[bool] = None | |
| last_sent_at: Optional[datetime] = None | |
| class DocumentNotificationOut(DocumentNotificationBase): | |
| id: str | |
| class DocumentNotificationList(APIModel): | |
| items: List[DocumentNotificationOut] | |
| total: int | None = None | |
| skip: int = 0 | |
| limit: int = 100 | |
Xet Storage Details
- Size:
- 913 Bytes
- Xet hash:
- 5701f44dc07c0ab4e92cfb60cda380a3d6816088ffa3b3a2c47f0ba67b5dff35
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.