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,576–4,600 of 5,412

order_line, page 184 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
457631800
457741400
457841400
457931800
4580121500
4581211700
458231800
458341400
4584121500
458541400
4586141500
4587221700
458831800
458931800
4590111500
45911311500
4592121500
459341400
459441400
4595111500
4596131500
4597221700
459831800
4599111500
4600111500
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;