Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 5,076–5,100 of 5,412

order_line, page 204 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
507631800
507731800
507841400
5079221700
5080121500
5081221700
508231800
508331800
5084121500
5085111500
508631800
508741400
5088121500
508931800
5090121500
5091121500
5092241700
5093111500
5094121500
5095121500
5096141500
5097151500
509841400
509941400
5100111500
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;