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,051–2,075 of 5,412

order_line, page 83 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2051121500
205241400
2053141500
2054211700
205531800
2056151500
2057111500
2058151500
2059141500
2060111500
206131800
2062211700
2063121500
206431800
206541400
2066111500
2067241700
206831800
2069111500
2070141500
2071111500
207241400
207331800
2074141500
2075111500
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;