MageSmith

📦 Magento_CatalogInventory · engine innodb

cataloginventory_stock_item

Cataloginventory Stock Item

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

flowchart LR
  c["cataloginventory_stock_item"]:::center
  n0["catalog_product_entity"]
  click n0 "/schema/table/catalog_product_entity"
  n0 -- product_id --> c
  n1["cataloginventory_stock"]
  click n1 "/schema/table/cataloginventory_stock"
  n1 -- stock_id --> c
  click c "/schema/table/cataloginventory_stock_item"
  classDef center fill:#eef2ff,stroke:#6366f1,color:#3730a3,stroke-width:1.5px

Click a node to jump to that table.

Columns (26)

NameTypeNullDefaultComment
item_id PKint unsignednoItem ID
product_id int unsignedno0Product ID
stock_id smallint unsignedno0Stock ID
qty decimal yesQty
min_qty decimal no0Min Qty
use_config_min_qty smallint unsignedno1Use Config Min Qty
is_qty_decimal smallint unsignedno0Is Qty Decimal
backorders smallint unsignedno0Backorders
use_config_backorders smallint unsignedno1Use Config Backorders
min_sale_qty decimal no1Min Sale Qty
use_config_min_sale_qty smallint unsignedno1Use Config Min Sale Qty
max_sale_qty decimal no0Max Sale Qty
use_config_max_sale_qty smallint unsignedno1Use Config Max Sale Qty
is_in_stock smallint unsignedno0Is In Stock
low_stock_date timestamp yesLow Stock Date
notify_stock_qty decimal yesNotify Stock Qty
use_config_notify_stock_qty smallint unsignedno1Use Config Notify Stock Qty
manage_stock smallint unsignedno0Manage Stock
use_config_manage_stock smallint unsignedno1Use Config Manage Stock
stock_status_changed_auto smallint unsignedno0Stock Status Changed Automatically
use_config_qty_increments smallint unsignedno1Use Config Qty Increments
qty_increments decimal no0Qty Increments
use_config_enable_qty_inc smallint unsignedno1Use Config Enable Qty Increments
enable_qty_increments smallint unsignedno0Enable Qty Increments
is_decimal_divided smallint unsignedno0Is Divided into Multiple Boxes for Shipping
website_id smallint unsignedno0Website ID

Keys & indexes

Primary key: item_id

Unique

  • CATALOGINVENTORY_STOCK_ITEM_PRODUCT_ID_STOCK_ID (product_id, stock_id)

Indexes

  • CATALOGINVENTORY_STOCK_ITEM_WEBSITE_ID (website_id) btree
  • CATALOGINVENTORY_STOCK_ITEM_WEBSITE_ID_PRODUCT_ID (website_id, product_id) btree
  • CATALOGINVENTORY_STOCK_ITEM_STOCK_ID (stock_id) btree

References (2)