GIGA FIXED EVERYTHING OMG
This commit is contained in:
21
db/models.py
21
db/models.py
@@ -53,6 +53,12 @@ class Sale(Base):
|
||||
date_created = Column(DateTime, default=datetime.now)
|
||||
date_modified = Column(DateTime, default=datetime.now, onupdate=datetime.now)
|
||||
|
||||
class Order(Base):
|
||||
__tablename__ = "orders"
|
||||
|
||||
id = Column(String, primary_key=True)
|
||||
sale_id = Column(String, ForeignKey("sales.id"))
|
||||
|
||||
class Ledger(Base):
|
||||
"""
|
||||
ledger associates financial transactions with a user
|
||||
@@ -162,6 +168,7 @@ class Card(Base):
|
||||
language = Column(String)
|
||||
scryfall_id = Column(String)
|
||||
manabox_id = Column(String)
|
||||
tcgplayer_id = Column(Integer)
|
||||
date_created = Column(DateTime, default=datetime.now)
|
||||
date_modified = Column(DateTime, default=datetime.now, onupdate=datetime.now)
|
||||
|
||||
@@ -180,6 +187,20 @@ class CardManabox(Base):
|
||||
condition = Column(String)
|
||||
language = Column(String)
|
||||
|
||||
class CardTCGPlayer(Base):
|
||||
__tablename__ = "card_tcgplayer"
|
||||
|
||||
product_id = Column(String, ForeignKey("cards.product_id"), primary_key=True)
|
||||
group_id = Column(Integer, ForeignKey("tcgplayer_groups.group_id"))
|
||||
tcgplayer_id = Column(Integer)
|
||||
product_line = Column(String)
|
||||
set_name = Column(String)
|
||||
product_name = Column(String)
|
||||
title = Column(String)
|
||||
number = Column(String)
|
||||
rarity = Column(String)
|
||||
condition = Column(String)
|
||||
|
||||
class Warehouse(Base):
|
||||
"""
|
||||
container that is associated with a user and contains inventory and stock
|
||||
|
Reference in New Issue
Block a user