🛍️ Magento_Quote · engine innodb
quote_item
Sales Flat Quote Item
Neighbourhood (1-hop foreign-key graph — showing 4 of 6)
flowchart LR c["quote_item"]:::center n0["quote"] click n0 "/schema/table/quote" n0 -- quote_id --> c n1["store"] click n1 "/schema/table/store" n1 -- store_id --> c n2["quote_address_item"] click n2 "/schema/table/quote_address_item" c -- quote_item_id --> n2 n3["quote_item_option"] click n3 "/schema/table/quote_item_option" c -- item_id --> n3 click c "/schema/table/quote_item" classDef center fill:#eef2ff,stroke:#6366f1,color:#3730a3,stroke-width:1.5px
Click a node to jump to that table.
Related tables (6)
Columns (53)
| Name | Type | Null | Default | Comment |
|---|---|---|---|---|
| gift_message_id | int | yes | Gift Message ID | |
| free_shipping | smallint unsigned | no | 0 | Free Shipping |
| item_id PK | int unsigned | no | Item ID | |
| quote_id | int unsigned | no | 0 | Quote ID |
| created_at | timestamp | no | CURRENT_TIMESTAMP | Created At |
| updated_at | timestamp | no | CURRENT_TIMESTAMP | Updated At |
| product_id | int unsigned | yes | Product ID | |
| store_id | smallint unsigned | yes | Store ID | |
| parent_item_id | int unsigned | yes | Parent Item ID | |
| is_virtual | smallint unsigned | yes | Is Virtual | |
| sku | varchar(255) | yes | Sku | |
| name | varchar(255) | yes | Name | |
| description | text | yes | Description | |
| applied_rule_ids | text | yes | Applied Rule Ids | |
| additional_data | text | yes | Additional Data | |
| is_qty_decimal | smallint unsigned | yes | Is Qty Decimal | |
| no_discount | smallint unsigned | yes | 0 | No Discount |
| weight | decimal | yes | 0 | Weight |
| qty | decimal | no | 0 | Qty |
| price | decimal | no | 0 | Price |
| base_price | decimal | no | 0 | Base Price |
| custom_price | decimal | yes | Custom Price | |
| discount_percent | decimal | yes | 0 | Discount Percent |
| discount_amount | decimal | yes | 0 | Discount Amount |
| base_discount_amount | decimal | yes | 0 | Base Discount Amount |
| tax_percent | decimal | yes | 0 | Tax Percent |
| tax_amount | decimal | yes | 0 | Tax Amount |
| base_tax_amount | decimal | yes | 0 | Base Tax Amount |
| row_total | decimal | no | 0 | Row Total |
| base_row_total | decimal | no | 0 | Base Row Total |
| row_total_with_discount | decimal | yes | 0 | Row Total With Discount |
| row_weight | decimal | yes | 0 | Row Weight |
| product_type | varchar(255) | yes | Product Type | |
| base_tax_before_discount | decimal | yes | Base Tax Before Discount | |
| tax_before_discount | decimal | yes | Tax Before Discount | |
| original_custom_price | decimal | yes | Original Custom Price | |
| redirect_url | varchar(255) | yes | Redirect Url | |
| base_cost | decimal | yes | Base Cost | |
| price_incl_tax | decimal | yes | Price Incl Tax | |
| base_price_incl_tax | decimal | yes | Base Price Incl Tax | |
| row_total_incl_tax | decimal | yes | Row Total Incl Tax | |
| base_row_total_incl_tax | decimal | yes | Base Row Total Incl Tax | |
| discount_tax_compensation_amount | decimal | yes | Discount Tax Compensation Amount | |
| base_discount_tax_compensation_amount | decimal | yes | Base Discount Tax Compensation Amount | |
| weee_tax_applied | text | yes | Weee Tax Applied | |
| weee_tax_applied_amount | decimal | yes | Weee Tax Applied Amount | |
| weee_tax_applied_row_amount | decimal | yes | Weee Tax Applied Row Amount | |
| weee_tax_disposition | decimal | yes | Weee Tax Disposition | |
| weee_tax_row_disposition | decimal | yes | Weee Tax Row Disposition | |
| base_weee_tax_applied_amount | decimal | yes | Base Weee Tax Applied Amount | |
| base_weee_tax_applied_row_amnt | decimal | yes | Base Weee Tax Applied Row Amnt | |
| base_weee_tax_disposition | decimal | yes | Base Weee Tax Disposition | |
| base_weee_tax_row_disposition | decimal | yes | Base Weee Tax Row Disposition |
Keys & indexes
Primary key: item_id
Indexes
- QUOTE_ITEM_PARENT_ITEM_ID (parent_item_id) btree
- QUOTE_ITEM_PRODUCT_ID (product_id) btree
- QUOTE_ITEM_QUOTE_ID (quote_id) btree
- QUOTE_ITEM_STORE_ID (store_id) btree
References (3)
- parent_item_id → quote_item .item_id (on delete CASCADE)
- quote_id → quote .entity_id (on delete CASCADE)
- store_id → store .store_id (on delete SET NULL)
Referenced by (3)
- quote_address_item .quote_item_id → .item_id (on delete CASCADE)
- quote_item .parent_item_id → .item_id (on delete CASCADE)
- quote_item_option .item_id → .item_id (on delete CASCADE)