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,101–1,125 of 5,412

order_line, page 45 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1101211700
110241400
1103151500
1104131500
1105221700
110631800
110731800
110831800
1109221700
111031800
111131800
111241400
111341400
111441400
1115131500
1116211700
1117111500
1118211700
1119241700
1120141500
1121221700
1122221700
112331800
1124241700
112531800
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;