Spaces:
Running
Running
| from typing import List, Optional, Dict, Any | |
| from pydantic import BaseModel | |
| class Notification(BaseModel): | |
| title: str | |
| body: str | |
| type: str | |
| priority: Optional[str] = "normal" | |
| event_id: int | |
| user_ids: List[int] | |
| ids: List[int] | |
| data: Optional[List[Dict[str, Any]]] = None | |
| class FCMToken(BaseModel): | |
| user_id: int | |
| fcm_token: str | |