產品資料庫表結構分析

來源:互聯網
上載者:User

 

資料庫--

產品資料庫表結構分析

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到這裡了

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.