Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 2,726–2,750 of 5,412

order_line, page 110 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2726141500
2727111500
272841400
2729241700
273031800
273131800
2732111500
2733121500
2734121500
273541400
2736131500
273741400
2738121500
273941400
274041400
2741231700
2742111500
274331800
274431800
274541400
274641400
2747131500
274831800
2749111500
2750241700
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;