Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 2,001–2,025 of 5,412

order_line, page 81 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2001211700
200231800
2003211700
2004121500
2005131500
20061441500
2007121500
2008221700
200941400
2010121500
201141400
2012121500
2013111500
2014211700
2015111500
2016211700
201731800
201831800
201931800
202031800
2021111500
202241400
202341400
2024111500
2025121500
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;