Skip to content
Louvre Ops DB

Table

order_line

Products and quantities in an order, with the price charged.

Replaces in 2020: Invoices

Rows 2,126–2,150 of 5,412

order_line, page 86 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2126141500
2127221700
2128211700
212931800
2130151500
213141400
2132211700
2133211700
213441400
2135141500
213641400
213731800
2138211700
2139131500
2140121500
2141141500
2142111500
2143241700
2144221700
2145141500
2146121500
2147111500
2148121500
2149121500
2150211700
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;