Database 电子商务网站的最佳数据库结构
我想知道你的程序员是如何在Mysql中处理这样一个电子商务网站的,以及产品、质量、大小、颜色和价格之间的关系。我的是Database 电子商务网站的最佳数据库结构,database,zend-framework,Database,Zend Framework,我想知道你的程序员是如何在Mysql中处理这样一个电子商务网站的,以及产品、质量、大小、颜色和价格之间的关系。我的是 餐桌用品 身份证 名字 父母 表大小 身份证 id_产品 大小/名称 数量 表色 身份证 id_产品 颜色 数量 嗯。。我想出了这个结构,希望能对大家有所帮助。应该有一个主表,其中包含产品信息。就你的情况而言,它的产品id、尺寸和颜色都是相同的。其余的表连接到主表 1.table products_id (master table) 1.id- Primary K
嗯。。我想出了这个结构,希望能对大家有所帮助。应该有一个主表,其中包含产品信息。就你的情况而言,它的产品id、尺寸和颜色都是相同的。其余的表连接到主表
1.table products_id (master table)
1.id- Primary Key
2.id_product_size- References size.id (FK)
3.id_product_color- References color.id (FK)
2. table product_name
1.product_id- References product_id.id(FK)
2.name
3.parents
3.table size
1.id- Primary Key
2.size_name
3.quantity
4.table color
1.id- Primary Key
2.colors
3.quantity
你想要一个数据库模型吗?我在这里很好,也许是。那么产品的类别呢,比如鞋子,或者t恤衫。在这种情况下,表必须将id\u product\u category添加到products\u id master表中,对吗?