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,601–2,625 of 5,412

order_line, page 105 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2601111500
2602121500
2603111500
2604111500
2605121500
2606211700
2607141500
2608211700
2609141500
2610221700
2611211700
261231800
2613211700
261441400
2615211700
2616121500
261741400
2618211700
261941400
2620231700
262131800
2622211700
2623111500
2624251700
2625111500
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;