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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| stock_transfer_id | uuid | not null, references stock_transfers.id | |
| product_id | uuid | not null, references products.id | |
| from_location_id | uuid | not null, references locations.id | |
| to_location_id | uuid | references locations.id | |
| quantity_sent | integer | not null | |
| quantity_received | integer |
Indexes (1)
(stock_transfer_id)
Relationships
stock_transfer_lines.stock_transfer_idreferencesstock_transfers.idstock_transfer_lines.product_idreferencesproducts.idstock_transfer_lines.from_location_idreferenceslocations.idstock_transfer_lines.to_location_idreferenceslocations.id