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

16 lines
378 B
Python
Raw Normal View History

2024-07-20 17:29:26 -04:00
from sqlalchemy import Boolean, Column, Integer, String
from .database import Base
class Card(Base):
__tablename__ = "card"
id = Column(Integer, primary_key=True)
2024-08-05 14:43:34 -04:00
photo_id = Column(Integer, unique=True)
2024-07-20 17:29:26 -04:00
medium_url = Column(String)
photo_url = Column(String)
topic = Column(String, index=True)
bad_match = Column(Boolean)
alt = Column(String)