stock_counts table
The stock_counts table in the Inventory Management Database Schema schema has 7 columns, keyed by id, with 1 foreign key to warehouses. 1 column in stock_count_lines references it.
A cycle count is the only sanctioned way to change stock without a business event behind it.
Columns (7)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| warehouse_id | uuid | not null, references warehouses.id | |
| reference | varchar(40) | unique, not null | |
| status | count_status | not null | |
| scheduled_for | date | ||
| started_at | timestamptz | ||
| completed_at | timestamptz |
Indexes (1)
(warehouse_id, status)
Relationships
stock_counts.warehouse_idreferenceswarehouses.idstock_count_lines.stock_count_idreferencesstock_counts