goods_receipts table
The goods_receipts table in the Inventory Management Database Schema schema has 7 columns, keyed by id, with 2 foreign keys to purchase_orders and warehouses. 1 column in goods_receipt_lines references it.
One PO can be received in several deliveries. That is why receipts are their own table rather than columns on the PO.
Columns (7)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| purchase_order_id | uuid | not null, references purchase_orders.id | |
| warehouse_id | uuid | not null, references warehouses.id | |
| reference | varchar(40) | unique, not null | |
| status | receipt_status | not null | |
| received_at | timestamptz | not null | |
| received_by | varchar(120) |
Indexes (1)
(purchase_order_id)
Relationships
goods_receipts.purchase_order_idreferencespurchase_orders.idgoods_receipts.warehouse_idreferenceswarehouses.idgoods_receipt_lines.goods_receipt_idreferencesgoods_receipts