MageSmith

🛒 Magento_SalesRule · engine innodb

salesrule

Salesrule

Neighbourhood (1-hop foreign-key graph — showing 6 of 6)

flowchart LR
  c["salesrule"]:::center
  n0["salesrule_product_attribute"]
  click n0 "/schema/table/salesrule_product_attribute"
  c -- rule_id --> n0
  n1["salesrule_coupon"]
  click n1 "/schema/table/salesrule_coupon"
  c -- rule_id --> n1
  n2["salesrule_customer"]
  click n2 "/schema/table/salesrule_customer"
  c -- rule_id --> n2
  n3["salesrule_customer_group"]
  click n3 "/schema/table/salesrule_customer_group"
  c -- rule_id --> n3
  n4["salesrule_label"]
  click n4 "/schema/table/salesrule_label"
  c -- rule_id --> n4
  n5["salesrule_website"]
  click n5 "/schema/table/salesrule_website"
  c -- rule_id --> n5
  click c "/schema/table/salesrule"
  classDef center fill:#eef2ff,stroke:#6366f1,color:#3730a3,stroke-width:1.5px

Click a node to jump to that table.

Columns (24)

NameTypeNullDefaultComment
simple_free_shipping smallint unsignedyesnullSimple Free Shipping
rule_id PKint unsignednoEntity ID
name varchar(255) yesName
description text yesDescription
from_date date yesFrom
to_date date yesTo
uses_per_customer int no0Uses Per Customer
is_active smallint no0Is Active
conditions_serialized mediumtext yesConditions Serialized
actions_serialized mediumtext yesActions Serialized
stop_rules_processing smallint no1Stop Rules Processing
is_advanced smallint unsignedno1Is Advanced
product_ids text yesProduct Ids
sort_order int unsignedno0Sort Order
simple_action varchar(32) yesSimple Action
discount_amount decimal no0Discount Amount
discount_qty decimal yesDiscount Qty
discount_step int unsignedno0Discount Step
apply_to_shipping smallint unsignedno0Apply To Shipping
times_used int no0Times Used
is_rss smallint no0Is Rss
coupon_type smallint unsignedno1Coupon Type
use_auto_generation smallint no0Use Auto Generation
uses_per_coupon int no0User Per Coupon

Keys & indexes

Primary key: rule_id

Indexes

  • SALESRULE_IS_ACTIVE_SORT_ORDER_TO_DATE_FROM_DATE (is_active, sort_order, to_date, from_date) btree

Referenced by (6)