stock_transfer_lines table

The stock_transfer_lines table in the Inventory Management Database Schema schema has 7 columns, keyed by id, with 4 foreign keys to stock_transfers, products and locations.

quantity_received null until the far end confirms. A shortfall against quantity_sent is shrinkage and should raise an exception.

Columns (7)

Columns of the stock_transfer_lines table
ColumnTypeConstraintsDescription
iduuidprimary key
stock_transfer_iduuidnot null, references stock_transfers.id
product_iduuidnot null, references products.id
from_location_iduuidnot null, references locations.id
to_location_iduuidreferences locations.id
quantity_sentintegernot null
quantity_receivedinteger

Indexes (1)

  • (stock_transfer_id)

Relationships