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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| shipment_id | uuid | not null, references shipments.id | |
| order_line_id | uuid | not null, references order_lines.id | |
| quantity | integer | not null |
Indexes (1)
(shipment_id, order_line_id)unique
Relationships
shipment_lines.shipment_idreferencesshipments.idshipment_lines.order_line_idreferencesorder_lines.id