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,751–2,775 of 5,412

order_line, page 111 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
275131800
275231800
275341400
275441400
2755121500
2756111500
2757241700
275831800
275941400
2760121500
2761121500
2762231700
276331800
2764111500
2765211700
2766131500
2767141500
2768151500
2769121500
277031800
2771241700
277231800
2773231700
2774111500
2775111500
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;