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,176–2,200 of 5,412

order_line, page 88 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2176221700
217731800
217841400
2179221700
2180131500
218141400
2182121500
218341400
218431800
2185131500
2186241700
218731800
2188131500
2189221700
2190211700
219131800
2192211700
2193211700
2194211700
219531800
219641400
219741400
219841400
2199121500
2200111500
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;