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,826–1,850 of 5,412

order_line, page 74 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
182641400
1827111500
182831800
182931800
1830111500
1831121500
1832111500
1833111500
183441400
1835211700
18361401500
1837131500
183841400
183931800
184031800
1841231700
1842211700
1843221700
184441400
184541400
184631800
184741400
1848221700
1849111500
185041400
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;