Say I have a products table that stores off the shelf products that are not customizable and have static pricing. I also have 1 product in this same table that is customizable and it's price and all sorts of characteristics vary based on the configuration. The final price for this customizable product is based on an equation, not a sum of individual configuration options.
I understand I need a products table and a lookup table for each configuration attribute for this customizable product. But, I only want to store 1 item in the product table to identify this customizable product. I want the frontend to be able to just populate dropdown boxes based on the lookup table data (just a fetchAll and render all options).
My confusion is, how do I have a relation between this customized product in the product table and its children lookup tables. Do I have some column in the product table that says "this item needs lookup tables"? Very stumped on this.
Thanks in advance!