我是数据库设计的新手。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
}