MageSmith

🛒 Magento_Sales · engine innodb

sales_order_item

Sales Flat Order Item

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

flowchart LR
  c["sales_order_item"]:::center
  n0["sales_order"]
  click n0 "/schema/table/sales_order"
  n0 -- order_id --> c
  n1["store"]
  click n1 "/schema/table/store"
  n1 -- store_id --> c
  n2["sales_order_tax_item"]
  click n2 "/schema/table/sales_order_tax_item"
  c -- associated_item_id --> n2
  n3["downloadable_link_purchased_item"]
  click n3 "/schema/table/downloadable_link_purchased_item"
  c -- order_item_id --> n3
  click c "/schema/table/sales_order_item"
  classDef center fill:#eef2ff,stroke:#6366f1,color:#3730a3,stroke-width:1.5px

Click a node to jump to that table.

Columns (80)

NameTypeNullDefaultComment
gift_message_id int yesGift Message ID
gift_message_available int yesGift Message Available
free_shipping smallint unsignedno0Free Shipping
item_id PKint unsignednoItem ID
order_id int unsignedno0Order ID
parent_item_id int unsignedyesParent Item ID
quote_item_id int unsignedyesQuote Item ID
store_id smallint unsignedyesStore ID
created_at timestamp noCURRENT_TIMESTAMPCreated At
updated_at timestamp noCURRENT_TIMESTAMPUpdated At
product_id int unsignedyesProduct ID
product_type varchar(255) yesProduct Type
product_options longtext yesProduct Options
weight decimal yes0Weight
is_virtual smallint unsignedyesIs Virtual
sku varchar(255) yesSku
name varchar(255) yesName
description text yesDescription
applied_rule_ids text yesApplied Rule Ids
additional_data text yesAdditional Data
is_qty_decimal smallint unsignedyesIs Qty Decimal
no_discount smallint unsignedno0No Discount
qty_backordered decimal yes0Qty Backordered
qty_canceled decimal yes0Qty Canceled
qty_invoiced decimal yes0Qty Invoiced
qty_ordered decimal yes0Qty Ordered
qty_refunded decimal yes0Qty Refunded
qty_shipped decimal yes0Qty Shipped
base_cost decimal yes0Base Cost
price decimal no0Price
base_price decimal no0Base Price
original_price decimal yesOriginal Price
base_original_price decimal yesBase Original Price
tax_percent decimal yes0Tax Percent
tax_amount decimal yes0Tax Amount
base_tax_amount decimal yes0Base Tax Amount
tax_invoiced decimal yes0Tax Invoiced
base_tax_invoiced decimal yes0Base Tax Invoiced
discount_percent decimal yes0Discount Percent
discount_amount decimal yes0Discount Amount
base_discount_amount decimal yes0Base Discount Amount
discount_invoiced decimal yes0Discount Invoiced
base_discount_invoiced decimal yes0Base Discount Invoiced
amount_refunded decimal yes0Amount Refunded
base_amount_refunded decimal yes0Base Amount Refunded
row_total decimal no0Row Total
base_row_total decimal no0Base Row Total
row_invoiced decimal no0Row Invoiced
base_row_invoiced decimal no0Base Row Invoiced
row_weight decimal yes0Row Weight
base_tax_before_discount decimal yesBase Tax Before Discount
tax_before_discount decimal yesTax Before Discount
ext_order_item_id varchar(255) yesExt Order Item ID
locked_do_invoice smallint unsignedyesLocked Do Invoice
locked_do_ship smallint unsignedyesLocked Do Ship
price_incl_tax decimal yesPrice Incl Tax
base_price_incl_tax decimal yesBase Price Incl Tax
row_total_incl_tax decimal yesRow Total Incl Tax
base_row_total_incl_tax decimal yesBase Row Total Incl Tax
discount_tax_compensation_amount decimal yesDiscount Tax Compensation Amount
base_discount_tax_compensation_amount decimal yesBase Discount Tax Compensation Amount
discount_tax_compensation_invoiced decimal yesDiscount Tax Compensation Invoiced
base_discount_tax_compensation_invoiced decimal yesBase Discount Tax Compensation Invoiced
discount_tax_compensation_refunded decimal yesDiscount Tax Compensation Refunded
base_discount_tax_compensation_refunded decimal yesBase Discount Tax Compensation Refunded
tax_canceled decimal yesTax Canceled
discount_tax_compensation_canceled decimal yesDiscount Tax Compensation Canceled
tax_refunded decimal yesTax Refunded
base_tax_refunded decimal yesBase Tax Refunded
discount_refunded decimal yesDiscount Refunded
base_discount_refunded decimal yesBase Discount Refunded
weee_tax_applied text yesWeee Tax Applied
weee_tax_applied_amount decimal yesWeee Tax Applied Amount
weee_tax_applied_row_amount decimal yesWeee Tax Applied Row Amount
weee_tax_disposition decimal yesWeee Tax Disposition
weee_tax_row_disposition decimal yesWeee Tax Row Disposition
base_weee_tax_applied_amount decimal yesBase Weee Tax Applied Amount
base_weee_tax_applied_row_amnt decimal yesBase Weee Tax Applied Row Amnt
base_weee_tax_disposition decimal yesBase Weee Tax Disposition
base_weee_tax_row_disposition decimal yesBase Weee Tax Row Disposition

Keys & indexes

Primary key: item_id

Indexes

  • SALES_ORDER_ITEM_ORDER_ID (order_id) btree
  • SALES_ORDER_ITEM_STORE_ID (store_id) btree

References (2)

  • order_id sales_order .entity_id (on delete CASCADE)
  • store_id store .store_id (on delete SET NULL)

Referenced by (3)