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,476–2,500 of 5,412

order_line, page 100 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2476121500
2477211700
24781431500
247931800
2480221700
2481121500
2482111500
2483111500
2484251700
248531800
2486221700
2487241700
248831800
2489111500
2490121500
2491121500
2492131500
2493211700
2494241700
2495141500
249641400
249741400
249831800
2499121500
2500121500
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;