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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| from_warehouse_id | uuid | not null, references warehouses.id | |
| to_warehouse_id | uuid | not null, references warehouses.id | |
| reference | varchar(40) | unique, not null | |
| status | transfer_status | not null | |
| shipped_at | timestamptz | ||
| received_at | timestamptz | ||
| created_at | timestamptz | not null |
Indexes (1)
(status)
Relationships
stock_transfers.from_warehouse_idreferenceswarehouses.idstock_transfers.to_warehouse_idreferenceswarehouses.idstock_transfer_lines.stock_transfer_idreferencesstock_transfers