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,376–2,400 of 5,412

order_line, page 96 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2376211700
237731800
2378111500
237931800
238031800
2381131500
2382211700
238331800
2384111500
238531800
2386121500
2387221700
2388111500
2389121500
2390111500
2391111500
2392111500
2393221700
239431800
239531800
2396211700
239741400
2398121500
239931800
2400211700
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;