🛒 Magento_SalesRule · engine innodb
salesrule_coupon_usage
Salesrule Coupon Usage
Neighbourhood (1-hop foreign-key graph — showing 2 of 2)
flowchart LR c["salesrule_coupon_usage"]:::center n0["salesrule_coupon"] click n0 "/schema/table/salesrule_coupon" n0 -- coupon_id --> c n1["customer_entity"] click n1 "/schema/table/customer_entity" n1 -- customer_id --> c click c "/schema/table/salesrule_coupon_usage" classDef center fill:#eef2ff,stroke:#6366f1,color:#3730a3,stroke-width:1.5px
Click a node to jump to that table.
Related tables (2)
Columns (3)
| Name | Type | Null | Default | Comment |
|---|---|---|---|---|
| coupon_id | int unsigned | no | Coupon ID | |
| customer_id | int unsigned | no | Customer ID | |
| times_used | int unsigned | no | 0 | Times Used |
Keys & indexes
Primary key: coupon_id, customer_id
Indexes
- SALESRULE_COUPON_USAGE_CUSTOMER_ID (customer_id) btree
References (2)
- coupon_id → salesrule_coupon .coupon_id (on delete CASCADE)
- customer_id → customer_entity .entity_id (on delete CASCADE)