zoukankan      html  css  js  c++  java
  • 转载] magento 产品数据表结构

    原文地址:http://blog.sina.com.cn/s/blog_9302097a010120l4.html

    数据库--

    产品数据库表结构分析

    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

    分类表结构。

  • 相关阅读:
    pongo英雄会-幸运数题解
    求最大公约数的算法
    第二课、GUI程序实例分析------------------狄泰软件学院
    第一课、GUI程序原理分析------------------狄泰软件学院
    第六十八课、拾遗:令人迷惑的写法
    第六十七课、经典问题解析五
    第六十六课、c++中的类型识别
    第六十五课、c++中的异常处理(下)
    第六十四课、c++中的异常处理(上)
    第六十三课、C语言的异常处理
  • 原文地址:https://www.cnblogs.com/Dong-Ge/p/4800048.html
Copyright © 2011-2022 走看看