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,101–3,125 of 5,412

order_line, page 125 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3101221700
310241400
3103111500
3104231700
3105111500
310631800
3107121500
3108251700
310931800
311041400
3111111500
3112121500
3113211700
3114111500
3115141500
311641400
311731800
3118141500
311941400
3120111500
3121211700
312231800
3123111500
3124121500
312541400
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;