Given: attributes of goods (color, height, manufacturer), which are selected from the proposed choice, not free editing. How in this case is it better to build a database? I think to bring each attribute into a separate entity, and then with the table M-M to link a specific product with attributes, i.e. table colors, products, product_has_colors . How correct is this and what are the alternatives?
In the future, you will need to make a filter for products by attributes, so the option to add attributes to json for each product, I think, is not the best idea.
