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,276–2,300 of 5,412

order_line, page 92 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2276231700
2277121500
2278141500
227931800
228041400
2281121500
2282121500
2283121500
2284121500
228541400
228631800
228741400
2288121500
2289221700
2290221700
229131800
2292231700
229341400
2294121500
2295111500
2296121500
229731800
229841400
2299111500
230041400
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;