from pydantic import BaseModel

class ShowResponse(BaseModel):
    id: int
    title: str
    caption: str
    images: str
    username: str
    avatar: str = None
    num_likes: int = 0
    is_liked: bool = False
    is_bookmarked: bool = False
    comments: list[dict]

class DeleteResponse(BaseModel):
    post_id: int

from pydantic import BaseModel

class ShowResponse(BaseModel):
    id: int
    title: str
    caption: str
    images: str
    username: str
    avatar: str = None
    num_likes: int = 0
    is_liked: bool = False
    is_bookmarked: bool = False
    comments: list[dict]

class DeleteResponse(BaseModel):
    post_id: int
