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,951–1,975 of 5,412

order_line, page 79 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1951111500
195241400
195331800
1954111500
1955121500
195641400
195741400
1958111500
1959141500
196031800
1961221700
1962221700
1963241700
196431800
1965151500
196641400
1967121500
1968241700
1969131500
1970111500
197131800
1972111500
197331800
1974221700
197531800
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;