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,076–2,100 of 5,412

order_line, page 84 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2076121500
207741400
2078141500
207931800
208041400
20811301500
208231800
2083211700
2084111500
2085141500
2086151500
2087121500
2088131500
208931800
2090121500
2091121500
2092121500
209341400
2094251700
2095221700
209631800
209731800
209841400
2099111500
210041400
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;