Files
deals24togo_be/app/schemas/favorite.py
belviskhoremk c4d836a0f9 Initial commit
2026-03-06 22:57:58 +00:00

26 lines
440 B
Python

"""Favorite / wishlist schemas."""
from __future__ import annotations
from datetime import datetime
from pydantic import BaseModel
class FavoriteCreate(BaseModel):
listing_id: str
class FavoriteResponse(BaseModel):
id: str
user_id: str
listing_id: str
created_at: datetime
model_config = {"from_attributes": True}
class FavoriteListResponse(BaseModel):
favorites: list[FavoriteResponse]
total: int