Notes

Data Model

Tables backing Inventory Dashboard

products

Dimension table of stocked products

ColumnTypeKey
product_id INTEGER PK
sku VARCHAR
name VARCHAR
category VARCHAR
unit_cost DECIMAL

warehouses

Dimension table of warehouse locations

ColumnTypeKey
warehouse_id INTEGER PK
name VARCHAR
region VARCHAR

inventory_snapshots

Fact table of periodic on-hand stock counts by product and warehouse

ColumnTypeKey
snapshot_id INTEGER PK
product_id INTEGER FK → products.product_id
warehouse_id INTEGER FK → warehouses.warehouse_id
snapshot_date DATE
quantity_on_hand INTEGER
quantity_reserved INTEGER
reorder_point INTEGER