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,976–3,000 of 5,412

order_line, page 120 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2976121500
297741400
2978111500
297941400
2980121500
2981111500
2982241700
2983111500
2984211700
2985111500
2986221700
2987111500
2988121500
298941400
2990141500
299141400
2992121500
2993121500
299441400
299541400
2996221700
2997221700
299831800
299931800
30001501500
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;