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,351–2,375 of 5,412

order_line, page 95 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
235141400
235241400
235331800
2354221700
235531800
2356121500
235741400
2358211700
2359241700
236031800
236131800
2362251700
2363141500
2364121500
236541400
2366121500
2367151500
2368211700
2369121500
2370231700
237131800
237231800
2373131500
2374131500
2375151500
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;