File size: 363 Bytes
b8392c6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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