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,201–3,225 of 5,412

order_line, page 129 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
320131800
320241400
3203221700
320431800
320531800
3206221700
320731800
320831800
3209211700
3210211700
3211151500
3212141500
3213121500
321441400
3215241700
3216241700
321731800
3218121500
321941400
3220121500
322131800
322231800
322331800
3224111500
3225241700
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;