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,026–2,050 of 5,412

order_line, page 82 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2026251700
2027211700
2028251700
202941400
203031800
203131800
2032131500
2033211700
2034221700
2035141500
2036121500
2037111500
2038121500
203941400
2040121500
204141400
204231800
2043221700
2044111500
2045221700
2046111500
204741400
2048221700
2049121500
205041400
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;