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,651–2,675 of 5,412

order_line, page 107 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2651131500
2652211700
2653121500
2654121500
265531800
265631800
2657131500
2658121500
2659131500
2660111500
2661241700
2662231700
2663121500
266431800
266541400
266641400
266741400
266841400
266931800
267041400
2671121500
2672121500
267341400
267441400
2675111500
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;