🛒 Magento_SalesRule · engine innodb
salesrule_coupon_aggregated_updated
Salesrule Coupon Aggregated Updated
Neighbourhood (1-hop foreign-key graph — showing 1 of 1)
flowchart LR c["salesrule_coupon_aggregated_updated"]:::center n0["store"] click n0 "/schema/table/store" n0 -- store_id --> c click c "/schema/table/salesrule_coupon_aggregated_updated" classDef center fill:#eef2ff,stroke:#6366f1,color:#3730a3,stroke-width:1.5px
Click a node to jump to that table.
Related tables (1)
Columns (13)
| 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 |
| subtotal_amount_actual | decimal | no | 0 | Subtotal Amount Actual |
| discount_amount_actual | decimal | no | 0 | Discount Amount Actual |
| total_amount_actual | decimal | no | 0 | Total Amount Actual |
| rule_name | varchar(255) | yes | Rule Name |
Keys & indexes
Primary key: id
Unique
- UNQ_7196FA120A4F0F84E1B66605E87E213E (period, store_id, order_status, coupon_code)
Indexes
- SALESRULE_COUPON_AGGREGATED_UPDATED_STORE_ID (store_id) btree
- SALESRULE_COUPON_AGGREGATED_UPDATED_RULE_NAME (rule_name) btree
References (1)
- store_id → store .store_id (on delete CASCADE)