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,926–1,950 of 5,412

order_line, page 78 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
192631800
192731800
1928111500
192931800
1930211700
1931121500
193241400
1933111500
1934111500
193531800
1936121500
193731800
1938241700
193931800
194031800
1941121500
1942221700
194331800
194431800
1945141500
1946121500
1947131500
1948111500
1949111500
1950111500
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;