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)

Columns of the goods_receipts table
ColumnTypeConstraintsDescription
iduuidprimary key
purchase_order_iduuidnot null, references purchase_orders.id
warehouse_iduuidnot null, references warehouses.id
referencevarchar(40)unique, not null
statusreceipt_statusnot null
received_attimestamptznot null
received_byvarchar(120)

Indexes (1)

  • (purchase_order_id)

Relationships