odin-codespace/memory-game/mg-backend/schemas.py

22 lines
283 B
Python
Raw Normal View History

2024-07-20 17:29:26 -04:00
from pydantic import BaseModel
class CardBase(BaseModel):
photo_id: int
medium_url: str
photo_url: str
topic: str
alt: str
bad_match: bool
class CardCreate(CardBase):
pass
class Card(CardBase):
id: int
class Config:
orm_mode = True