I want to know the way to design database for product data (variation-variables data)
Example
I have those tables:
Products: id - Title
Attributes: id - name
Options : id - name - attribute_id
Each product has one or more attributes, and each attributes has one or more options.
This is the setup I have in mind:
Table product_attribute_option
:
ID - price - sale_price - qty - product_id - attribute_id - option_id
My question is how to manage this situation with a migration and a database?