MageSmith

🛒 Magento_SalesRule · engine innodb

salesrule_website

Sales Rules To Websites Relations

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

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

Click a node to jump to that table.

Columns (2)

NameTypeNullDefaultComment
rule_id int unsignednoRule ID
website_id smallint unsignednoWebsite ID

Keys & indexes

Primary key: rule_id, website_id

Indexes

  • SALESRULE_WEBSITE_WEBSITE_ID (website_id) btree

References (2)

  • rule_id salesrule .rule_id (on delete CASCADE)
  • website_id store_website .website_id (on delete CASCADE)