Skip to content
Louvre Ops DB

Table

order_line

Products and quantities in an order, with the price charged.

Replaces in 2020: Invoices

Rows 4,051–4,075 of 5,412

order_line, page 163 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4051111500
4052111500
4053241700
405431800
4055211700
4056221700
405741400
405831800
4059141500
4060121500
4061121500
4062121500
406341400
406441400
4065221700
406631800
4067111500
406831800
406941400
4070111500
4071111500
407241400
4073121500
40741491500
4075111500
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;