MageSmith

🛒 Magento_SalesRule · engine innodb

salesrule_product_attribute

Salesrule Product Attribute

Neighbourhood (1-hop foreign-key graph — showing 4 of 4)

flowchart LR
  c["salesrule_product_attribute"]:::center
  n0["eav_attribute"]
  click n0 "/schema/table/eav_attribute"
  n0 -- attribute_id --> c
  n1["customer_group"]
  click n1 "/schema/table/customer_group"
  n1 -- customer_group_id --> c
  n2["salesrule"]
  click n2 "/schema/table/salesrule"
  n2 -- rule_id --> c
  n3["store_website"]
  click n3 "/schema/table/store_website"
  n3 -- website_id --> c
  click c "/schema/table/salesrule_product_attribute"
  classDef center fill:#eef2ff,stroke:#6366f1,color:#3730a3,stroke-width:1.5px

Click a node to jump to that table.

Columns (4)

NameTypeNullDefaultComment
rule_id int unsignednoRule ID
website_id smallint unsignednoWebsite ID
customer_group_id int unsignednoCustomer Group ID
attribute_id smallint unsignednoAttribute ID

Keys & indexes

Primary key: rule_id, website_id, customer_group_id, attribute_id

Indexes

  • SALESRULE_PRODUCT_ATTRIBUTE_WEBSITE_ID (website_id) btree
  • SALESRULE_PRODUCT_ATTRIBUTE_CUSTOMER_GROUP_ID (customer_group_id) btree
  • SALESRULE_PRODUCT_ATTRIBUTE_ATTRIBUTE_ID (attribute_id) btree

References (4)

  • attribute_id eav_attribute .attribute_id (on delete CASCADE)
  • customer_group_id customer_group .customer_group_id (on delete CASCADE)
  • rule_id salesrule .rule_id (on delete CASCADE)
  • website_id store_website .website_id (on delete CASCADE)