MageSmith

🛒 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)

NameTypeNullDefaultComment
id PKint unsignednoID
period date noPeriod
store_id smallint unsignedyesStore ID
order_status varchar(50) yesOrder Status
coupon_code varchar(50) yesCoupon Code
coupon_uses int no0Coupon Uses
subtotal_amount decimal no0Subtotal Amount
discount_amount decimal no0Discount Amount
total_amount decimal no0Total Amount
subtotal_amount_actual decimal no0Subtotal Amount Actual
discount_amount_actual decimal no0Discount Amount Actual
total_amount_actual decimal no0Total Amount Actual
rule_name varchar(255) yesRule 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)