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,901–1,925 of 5,412

order_line, page 77 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1901211700
190231800
1903111500
190441400
1905121500
1906121500
190731800
190841400
1909111500
1910131500
1911221700
1912231700
191331800
1914131500
1915121500
1916211700
191731800
1918141500
191931800
1920131500
1921221700
1922221700
192331800
1924141500
1925121500
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;