Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
one product has several colors and flowers can have several sizes
id | article
id | hex_code | rgb_code
id | rus | eu
product_id | color_id | size_id | count
Well, in fact, you have nothing complicated. You need 3 tables:
1. Products
2. Product properties (color, size)
3. Linking table, where you refer to the first 2 tables with foreign keys.
Thus, you implement a many-to-many relationship (many-to-many) .
Schematically, it looks like this:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question