设为首页 加入收藏

TOP

10分钟掌握数据库建模(五)
2014-11-24 07:14:03 来源: 作者: 【 】 浏览:60
Tags:10分钟 掌握 数据库 建模
----------+

7.2. 实现属性组管理

product attribute group

+------------+ +--------------------------+ +--------------------------+ +-----------------------+

| category | | product_attribute_group | | product_attribute | |product_attribute_key |

+------------+ +--------------------------+ +--------------------------+ +-----------------------+

|id | +---> |id | <--1:n--o |product_attribute_group_id| +---> |id |

|title | | |name | |product_attribute_key_id | o---+ |name |

|description | 1:1 |status | |product_attribute_value_id| o---+ +-----------------------+

|status | | +--------------------------+ +--------------------------+ | +-----------------------+

|parent_id | | 1:n |product_attribute_value|

|default_pag | o---+ | +-----------------------+

+------------+ +---> |id |

|name |

+-----------------------+

7.3. 可编辑属表

product attribute group

+------------+ +------------------+ +--------------------------+ +---------------------------------+

| category | | attribute_group | | group_has_attribute | |attribute_key |

+------------+ +------------------+ +--------------------------+ +---------------------------------+

+->|id | +--> |id | <--1:n--o |attribute_group_id | +-+-> |id |

| |title | | |name | |attribute_key_id | o---+ | |name |

| |description | 1:1 |status | | | | |type enum('Bool','List','Input') |

| |status | | +------------------+ +--------------------------+ | |default array() |

| |parent_id | | | +---------------------------------+

| |default_pag | o---+ |

| +------------+ |

1:n |

| +-------------+ +--------------------------+ |

| | product | | product_attribute | |

| +-------------+ +

首页 上一页 2 3 4 5 6 下一页 尾页 5/6/6
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇讲解更改MySQL数据库root密码的具.. 下一篇Mysql ON子句和USING子句

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Redis 分布式锁全解 (2025-12-25 17:19:51)
·SpringBoot 整合 Red (2025-12-25 17:19:48)
·MongoDB 索引 - 菜鸟 (2025-12-25 17:19:45)
·What Is Linux (2025-12-25 16:57:17)
·Linux小白必备:超全 (2025-12-25 16:57:14)