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,401–2,425 of 5,412

order_line, page 97 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2401121500
2402221700
2403121500
2404211700
240531800
240631800
2407111500
2408131500
2409251700
2410111500
241131800
241241400
2413141500
2414131500
241541400
2416121500
2417111500
2418121500
2419121500
2420221700
242141400
2422111500
2423221700
242441400
2425121500
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;