🛒 Magento_SalesRule · engine innodb
salesrule_coupon_aggregated_order
Coupon Aggregated Order
Neighbourhood (1-hop foreign-key graph — showing 1 of 1)
flowchart LR c["salesrule_coupon_aggregated_order"]:::center n0["store"] click n0 "/schema/table/store" n0 -- store_id --> c click c "/schema/table/salesrule_coupon_aggregated_order" classDef center fill:#eef2ff,stroke:#6366f1,color:#3730a3,stroke-width:1.5px
Click a node to jump to that table.
Related tables (1)
Columns (10)
| Name | Type | Null | Default | Comment |
|---|---|---|---|---|
| id PK | int unsigned | no | ID | |
| period | date | no | Period | |
| store_id | smallint unsigned | yes | Store ID | |
| order_status | varchar(50) | yes | Order Status | |
| coupon_code | varchar(50) | yes | Coupon Code | |
| coupon_uses | int | no | 0 | Coupon Uses |
| subtotal_amount | decimal | no | 0 | Subtotal Amount |
| discount_amount | decimal | no | 0 | Discount Amount |
| total_amount | decimal | no | 0 | Total Amount |
| rule_name | varchar(255) | yes | Rule Name |
Keys & indexes
Primary key: id
Unique
- UNQ_1094D1FBBCBB11704A29DEF3ACC37D2B (period, store_id, order_status, coupon_code)
Indexes
- SALESRULE_COUPON_AGGREGATED_ORDER_STORE_ID (store_id) btree
- SALESRULE_COUPON_AGGREGATED_ORDER_RULE_NAME (rule_name) btree
References (1)
- store_id → store .store_id (on delete CASCADE)