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,001–3,025 of 5,412

order_line, page 121 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3001111500
3002211700
3003121500
3004111500
300531800
300631800
300731800
3008241700
3009111500
3010221700
3011221700
301231800
301331800
3014111500
3015111500
3016121500
301741400
3018251700
301931800
302031800
3021111500
3022211700
3023121500
3024131500
302541400
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;