Skip to content
Louvre Ops DB

Table

order_line

Products and quantities in an order, with the price charged.

Replaces in 2020: Invoices

Rows 4,626–4,650 of 5,412

order_line, page 186 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4626151500
4627131500
4628241700
462931800
4630131500
4631111500
463241400
463331800
4634121500
463531800
463631800
4637121500
4638221700
463931800
4640221700
464131800
464241400
4643111500
4644211700
464531800
464631800
464741400
4648211700
464941400
4650141500
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;