🛒 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.
Related tables (2)
Columns (2)
| Name | Type | Null | Default | Comment |
|---|---|---|---|---|
| rule_id | int unsigned | no | Rule ID | |
| website_id | smallint unsigned | no | Website 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)