mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-27 22:50:42 -05:00
15 lines
378 B
Python
15 lines
378 B
Python
from sqlalchemy import Boolean, Column, Integer, String
|
|
|
|
from .database import Base
|
|
|
|
|
|
class Card(Base):
|
|
__tablename__ = "card"
|
|
|
|
id = Column(Integer, primary_key=True)
|
|
photo_id = Column(Integer, unique=True)
|
|
medium_url = Column(String)
|
|
photo_url = Column(String)
|
|
topic = Column(String, index=True)
|
|
bad_match = Column(Boolean)
|
|
alt = Column(String)
|