dodal owner_id za deck

master
Kostanjevec 2022-06-05 18:54:48 +02:00
parent 1fb5e0320d
commit e0f2111b88
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class Card(Base):
class Deck(Base):
__tablename__ = 'deck'
id = Column(Integer, primary_key=True, autoincrement=True)
owner_id = Column(Integer, ForeignKey("user.id"), nullable=False)
cards_by_id = Column(Text)
number_of_cards = Column(Integer)
current_card = Column(Integer)