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

    分类表结构。

  • 相关阅读:
    有道难题 双倍超立方数 的解答
    《网瘾战争》如此震撼之作,不看枉为国人
    CSS样式命名规则及参考命名标准
    AS3自定义鼠标光标后应注意鼠标事件捕获问题
    AS3 RPG游戏引擎开发日志3:地图坐标转换
    最长的一天
    解决ASP乱码问题
    you are MJJ!!!!
    浅谈MIS系统架构
    让火狐等浏览器也能使用HTC(HTML component)的方法
  • 原文地址:https://www.cnblogs.com/Dong-Ge/p/4800048.html
Copyright © 2011-2022 走看看