产品数据库表结构分析

 

数据库--

产品数据库表结构分析

product

1数据库实体表:catalog_product_entity。

属性:entity_id,entity_type_id,attribute_set_id,type_id,sku,has_options,required_options,created_at,updated_at.

2next层-->属性类型表join(entity_id),通过entity_id和catalog_product_entity关联。

catalog_product_entity_datetime            value_id,entity_type_id,attribute_id,store_id,entity_id,value

catalog_product_entity_decimal   value_id....

catalog_product_entity_gallery

catalog_product_entity_int

catalog_product_entity_media_gallery

catalog_product_entity_media_gallery_value

catalog_product_entity_text

catalog_product_entity_tier_price

catalog_product_entity_varchar

其中,attribute_id对应属性表eav_attribute,entity_id对应catalog_product_entity表的entity_id,value对应属性值表

3

eav表

属性表

eav_attribute:attribute_id,entity_type_id,attribute_code,attribute_model,backend_model,backend_type,backend_table

     

 

frontend_model,frontend_input,frontend_label,frontend_class,source_model,is_required,is_user_defined,default_value,is_unique,note.

 

属性值表:

eav_attribute_group,eav_attribute_label,eav_attribute_option,eav_attribute_option_value,eav_attribute_set

eav_attribute_option_value:value_id,option_id,store_id,value

eav_attribute_option:option_id,attribute_id,sort_order,option_id和eav_attribute_option_value对应,

                     attribute_id和eav_attribute对应。

eav_attribute_group:是在后台添加产品信息左侧点击,譬如:general,prices,images,Design,General等。

4

eav表(entity)

eav_entity_attribute-->属性:

entity_attribute_id,entity_type_id,attribute_set_id,attribute_group,attribute_id,sort_order.

 

这个表是把一些表给穿起来,譬如:attribute_group对用eav_attribute_group.

5

catalog_category_product  -->category_id,product_id,position

这个表的作用是把产品和分类关联起来。

6

分类表:

mg_catalog_category_entity

分类表结构。

OK到这里了

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值