mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-27 22:50:42 -05:00
21 lines
290 B
Python
21 lines
290 B
Python
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:
|
|
from_attributes = True
|