13 lines
287 B
Python
13 lines
287 B
Python
from pydantic import BaseModel
|
|
from typing import List
|
|
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
|
|
latest_message: str = ""
|
|
created_at: str
|