データベース設計は初めてです。cms の製品属性データベース設計のより良いオプションは何ですか?(他のオプションも提案してください)。
オプション 1: 1 テーブル
products{
id
product_name
color
price
attribute_name1
attribute_value1
attribute_name2
attribute_value2
attribute_name3
attribute_value3
}
オプション 2: 3 つのテーブル
products{
id
product_name
color
price
}
attribute{
id
name
value
}
products_attribute{
products_id
attribute_id
}