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,301–2,325 of 5,412

order_line, page 93 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
230131800
23021381500
2303121500
2304121500
2305141500
2306121500
2307141500
2308241700
2309221700
231031800
2311241700
231231800
2313111500
2314121500
231541400
2316211700
2317211700
2318121500
2319111500
232041400
2321121500
2322211700
232331800
2324211700
232531800
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;