15 lines
366 B
Python
15 lines
366 B
Python
from pydantic import BaseModel
|
|
from typing import List, Optional
|
|
from .message import MessageResponse
|
|
|
|
class ConversationResponse(BaseModel):
|
|
id: int
|
|
user_id_1: int
|
|
user_id_2: int
|
|
other_user_display_name: str
|
|
other_user_id: int
|
|
other_user_photo: Optional[str] = None
|
|
latest_message: str = ""
|
|
unread_count: int = 0
|
|
created_at: str
|