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,476–3,500 of 5,412

order_line, page 140 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3476211700
3477111500
3478121500
347941400
3480111500
3481211700
3482121500
3483111500
348441400
3485241700
348631800
348741400
3488151500
3489121500
349031800
3491251700
349231800
3493241700
3494211700
3495111500
349641400
3497131500
3498151500
349941400
3500111500
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;