mirror of
http://88.130.71.182:3000/BlitTech/deals24togo_be.git
synced 2026-06-12 23:33:21 +00:00
26 lines
440 B
Python
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
|