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,651–3,675 of 5,412

order_line, page 147 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
36511601500
3652111500
3653121500
3654221700
3655121500
3656111500
3657211700
3658131500
365931800
3660131500
3661121500
3662121500
366331800
3664241700
366531800
3666121500
366741400
3668111500
3669221700
3670231700
3671121500
367231800
3673221700
3674211700
3675241700
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;