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,576–2,600 of 5,412

order_line, page 104 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2576121500
2577221700
257831800
257941400
2580111500
258131800
2582241700
258341400
2584211700
2585221700
258641400
2587211700
2588121500
2589111500
2590221700
2591241700
259231800
2593131500
2594211700
259531800
25961581500
259731800
2598211700
259931800
2600221700
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;