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,701–2,725 of 5,412

order_line, page 109 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2701221700
2702221700
270331800
270431800
2705121500
270631800
2707241700
2708221700
2709211700
2710121500
271141400
2712221700
271331800
2714111500
2715121500
2716221700
2717211700
271841400
2719121500
2720211700
272141400
272241400
272341400
2724211700
272531800
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;