Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 1,801–1,825 of 5,412

order_line, page 73 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
180131800
180231800
180331800
1804231700
1805211700
1806221700
180731800
180831800
180941400
1810211700
1811221700
1812121500
1813211700
181431800
1815121500
181631800
181731800
1818111500
181941400
1820221700
182131800
1822151500
1823121500
1824211700
1825121500
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;