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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| product_id | uuid | not null, references products.id | |
| warehouse_id | uuid | not null, references warehouses.id | |
| reorder_point | integer | not null | |
| reorder_quantity | integer | not null | |
| max_stock | integer |
Indexes (1)
(product_id, warehouse_id)unique
Relationships
reorder_rules.product_idreferencesproducts.idreorder_rules.warehouse_idreferenceswarehouses.id