File size: 678 Bytes
c0f9c82
f5bcfa6
c0f9c82
119d5fc
c0f9c82
 
 
f5bcfa6
 
c0f9c82
 
 
 
 
f5bcfa6
 
c0f9c82
 
cc8f808
c0f9c82
 
 
 
bf6502c
f5bcfa6
bf6502c
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from datetime import date
from typing import List, Optional
from pydantic import BaseModel
from src.core.models import Emotion

class EmotionLogCreate(BaseModel):
    user_id: str
    morning_emotion: Optional[Emotion] = None
    evening_emotion: Optional[Emotion] = None
    log_date: date


class EmotionLogResponse(BaseModel):
    log_date: date
    morning_emotion: Optional[Emotion]
    evening_emotion: Optional[Emotion]


class HomeResponseData(BaseModel):
    user_id: str
    user_name: str
    philosophy_text: str
    recent_emotions: List[EmotionLogResponse]


class BroadcastNotificationRequest(BaseModel):
    title: str
    body: str
    data: dict | None = None