stock_transfers table

The stock_transfers table in the Inventory Management Database Schema schema has 8 columns, keyed by id, with 2 foreign keys to warehouses. 1 column in stock_transfer_lines references it.

Stock in transit belongs to neither end. Shipping writes the negative movement, receiving writes the positive one, and the gap between them is visible on purpose.

Columns (8)

Columns of the stock_transfers table
ColumnTypeConstraintsDescription
iduuidprimary key
from_warehouse_iduuidnot null, references warehouses.id
to_warehouse_iduuidnot null, references warehouses.id
referencevarchar(40)unique, not null
statustransfer_statusnot null
shipped_attimestamptz
received_attimestamptz
created_attimestamptznot null

Indexes (1)

  • (status)

Relationships