This question is related to Database Design: inventory and sales system?
So for example a burger is a Product
which is made up of Component
bun, meat, cheese, pickles etc. When this burger is sold it can be customized by adding/removing/modifying components.
How is this customization accounted for as a line item? Would there be another table ProductCustomization
with a reference to the Product
and the Component
and a column to indicate the type of customization? What about if you want to modify the Composition
of a Component
in the Product
(ex. 3 pickles per burger).
An example of a customization would be ordering a burger with no pickles, or adding extra cheese.