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,501–2,525 of 5,412

order_line, page 101 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2501211700
2502231700
2503151500
2504131500
2505251700
2506211700
250731800
250831800
250941400
2510121500
2511111500
251231800
251331800
2514111500
2515111500
2516211700
251731800
251841400
2519141500
2520111500
252131800
2522121500
2523131500
252441400
2525131500
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;