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

order_line, page 173 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
430131800
4302151500
4303111500
4304141500
430531800
4306121500
4307141500
4308141500
4309221700
431031800
4311241700
4312211700
4313131500
431441400
431541400
4316111500
4317111500
431841400
4319221700
432031800
4321111500
4322211700
4323211700
4324121500
4325131500
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;