shipment_lines table

The shipment_lines table in the E-commerce Database Schema schema has 4 columns, keyed by id, with 2 foreign keys to shipments and order_lines.

Quantities here sum to at most the matching order_line quantity. That is what makes partial shipment work.

Columns (4)

Columns of the shipment_lines table
ColumnTypeConstraintsDescription
iduuidprimary key
shipment_iduuidnot null, references shipments.id
order_line_iduuidnot null, references order_lines.id
quantityintegernot null

Indexes (1)

  • (shipment_id, order_line_id) unique

Relationships