Hi, I new in database design. What is better option for product attribute database design for cms?(Please suggest other options also).
option 1: 1 table
products{
id
product_name
color
price
attribute_name1
attribute_value1
attribute_name2
attribute_value2
attribute_name3
attribute_value3
}
option 2: 3 tables
products{
id
product_name
color
price
}
attribute{
id
name
value
}
products_attribute{
products_id
attribute_id
}
Thanks, Yosef