mirror of
http://88.130.71.182:3000/BlitTech/deals24togo_be.git
synced 2026-06-13 07:50:47 +00:00
Initial commit
This commit is contained in:
25
app/schemas/favorite.py
Normal file
25
app/schemas/favorite.py
Normal file
@@ -0,0 +1,25 @@
|
||||
"""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
|
||||
Reference in New Issue
Block a user