redesing product lists

This commit is contained in:
2025-05-28 11:01:42 +02:00
parent 330124837f
commit eb3ae05425
12 changed files with 1569 additions and 809 deletions

View File

@@ -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