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,926–4,950 of 5,412

order_line, page 198 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4926121500
4927121500
4928221700
4929111500
493031800
4931121500
4932151500
493331800
493431800
4935121500
4936121500
4937141500
4938121500
493941400
4940211700
4941111500
4942121500
4943121500
494431800
494531800
4946121500
494741400
4948111500
494941400
4950111500
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;