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,876–1,900 of 5,412

order_line, page 76 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
18761461500
1877221700
1878111500
1879141500
1880121500
1881121500
1882111500
188341400
188431800
188531800
188631800
1887211700
1888111500
188931800
189041400
1891211700
189231800
1893221700
189431800
1895241700
189631800
189741400
189841400
1899111500
190041400
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;