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,801–2,825 of 5,412

order_line, page 113 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
280131800
280231800
2803111500
2804111500
2805111500
2806151500
2807111500
2808141500
2809131500
281031800
281131800
2812111500
2813141500
2814111500
2815111500
281631800
28171561500
2818111500
2819221700
282031800
2821211700
282231800
282341400
2824121500
282541400
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;