Skip to content
Louvre Ops DB

Table

order_line

Products and quantities in an order, with the price charged.

Replaces in 2020: Invoices

Rows 1,226–1,250 of 5,412

order_line, page 50 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1226111500
122741400
1228131500
1229131500
1230121500
1231221700
123241400
1233121500
1234131500
123541400
123641400
1237141500
1238221700
123931800
1240121500
124131800
124241400
124331800
1244111500
1245121500
124641400
124731800
124831800
1249121500
1250111500
Table definition
CREATE TABLE order_line (
  order_id         INTEGER NOT NULL REFERENCES purchase_order (order_id),
  product_id       INTEGER NOT NULL REFERENCES product (product_id),
  quantity         INTEGER NOT NULL CHECK (quantity > 0),
  unit_price_cents INTEGER NOT NULL CHECK (unit_price_cents >= 0),
  PRIMARY KEY (order_id, product_id)
) STRICT;