Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

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

order_line, page 146 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3626121500
3627141500
3628231700
3629121500
3630221700
3631111500
3632151500
3633151500
363441400
3635241700
3636121500
3637251700
363831800
3639121500
3640121500
364141400
3642211700
3643121500
3644221700
3645211700
364631800
364741400
3648221700
364931800
3650141500
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;