reorder_rules table

The reorder_rules table in the Inventory Management Database Schema schema has 6 columns, keyed by id, with 2 foreign keys to products and warehouses.

Per warehouse, not global. A slow regional depot should not be restocked on the same trigger as the main hub.

Columns (6)

Columns of the reorder_rules table
ColumnTypeConstraintsDescription
iduuidprimary key
product_iduuidnot null, references products.id
warehouse_iduuidnot null, references warehouses.id
reorder_pointintegernot null
reorder_quantityintegernot null
max_stockinteger

Indexes (1)

  • (product_id, warehouse_id) unique

Relationships