I have a complex database design with many different attributes for each product.
Here's the situation: each product must belong to a category , and each category has a different set of attributes .
For instance:
- IGal 7S Product โ Category Smartphones โ Attributes attr_phone
- UberLaptop Product โ Category Laptops and Notebooks โ Attributes attr_laptop
From what I understood , it would be better to avoid EAV and continue class table inheritance.
In this observation, I would have a starting point:

If I had one set of attributes, I would use the attribute_id foreign key in the products table and call it day, but I will potentially have 50 + attributes set (and therefore 50 + ).
- Is CTI valid as an approach?
- How can I assign the correct attributes set for the product?
Sorry for the stupid question, but in particular, I donโt understand how I can assign different attributes set when choosing a different category. Thank you for reading.
source share