Skip to content
Louvre Ops DB

Table

order_line

Products and quantities in an order, with the price charged.

Replaces in 2020: Invoices

Rows 5,301–5,325 of 5,412

order_line, page 213 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
5301121500
5302121500
5303111500
5304121500
530531800
530631800
5307121500
530831800
5309111500
5310141500
531141400
531231800
5313221700
531431800
5315131500
5316151500
5317111500
5318221700
5319121500
5320111500
532141400
5322131500
532341400
532441400
5325211700
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;