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,601–3,625 of 5,412

order_line, page 145 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3601121500
3602241700
360331800
3604111500
3605131500
3606111500
360731800
36081361500
3609221700
3610131500
361141400
3612111500
3613111500
361431800
3615111500
3616221700
361731800
361831800
3619121500
3620211700
362131800
3622211700
3623131500
3624121500
3625211700
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;