redesing product lists
This commit is contained in:
@@ -14,7 +14,8 @@ shopping_event_products = Table(
|
||||
Column('shopping_event_id', Integer, ForeignKey('shopping_events.id'), nullable=False),
|
||||
Column('product_id', Integer, ForeignKey('products.id'), nullable=False),
|
||||
Column('amount', Float, nullable=False), # Amount of this product bought in this event
|
||||
Column('price', Float, nullable=False) # Price of this product at the time of this shopping event
|
||||
Column('price', Float, nullable=False), # Price of this product at the time of this shopping event
|
||||
Column('discount', Boolean, default=False, nullable=False) # Whether this product was purchased with a discount
|
||||
)
|
||||
|
||||
# Association table for many-to-many self-referential relationship between related products
|
||||
|
||||
Reference in New Issue
Block a user