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,926–3,950 of 5,412

order_line, page 158 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3926111500
3927121500
3928121500
392941400
393041400
393131800
3932221700
3933221700
393431800
393531800
3936211700
393741400
393841400
3939111500
394041400
3941111500
3942151500
3943221700
394441400
3945241700
3946141500
3947221700
3948241700
394931800
395031800
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;