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,876–2,900 of 5,412

order_line, page 116 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
287641400
287741400
287841400
2879111500
2880231700
288131800
288241400
2883111500
288441400
288541400
288641400
288741400
2888121500
288941400
2890111500
289141400
2892221700
289331800
289441400
2895111500
289641400
2897221700
289841400
2899121500
2900111500
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;