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,726–1,750 of 5,412

order_line, page 70 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
172631800
172731800
1728111500
1729231700
1730211700
173131800
1732221700
173331800
1734141500
1735221700
173641400
1737121500
173831800
173941400
1740241700
174131800
174231800
174331800
1744111500
174541400
1746211700
1747141500
174841400
174941400
1750221700
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;