I have three product types. It will be more later. Also I have product categories. category can't have multiple product type. So, how should I keep the categories.
1.id | parent_id | name
I'll set the product types as the root categories.
For example:
Electronic > computer > laptop
Electronic's parent id will be 0 and next categories will linked due to that.
id | parent_id | product_type | name
I'll get the electronic from product_type and computer's parent_id will be 0.
which way is better?