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)

Columns of the stock_counts table
ColumnTypeConstraintsDescription
iduuidprimary key
warehouse_iduuidnot null, references warehouses.id
referencevarchar(40)unique, not null
statuscount_statusnot null
scheduled_fordate
started_attimestamptz
completed_attimestamptz

Indexes (1)

  • (warehouse_id, status)

Relationships