products table

The products table in the Inventory Management Database Schema schema has 12 columns, keyed by id, with 2 foreign keys to product_categories and suppliers. 6 columns in stock_items, stock_movements, reorder_rules, purchase_order_lines and 2 more reference it.

unit_cost_cents is the standard cost used for valuation. Actual paid cost lives on the purchase order line.

Columns (12)

Columns of the products table
ColumnTypeConstraintsDescription
iduuidprimary key
category_iduuidreferences product_categories.id
preferred_supplier_iduuidreferences suppliers.id
skuvarchar(64)unique, not null
namevarchar(255)not null
descriptiontext
unit_of_measureunit_of_measurenot null
unit_cost_centsintegernot null
currencychar(3)not null
barcodevarchar(64)unique
is_serializedbooleannot null
is_activebooleannot null

Indexes (2)

  • (category_id, is_active)
  • (name)

Relationships