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,276–5,300 of 5,412

order_line, page 212 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
5276131500
527731800
5278141500
5279121500
5280211700
5281211700
5282151500
5283121500
5284221700
5285141500
5286131500
528741400
5288121500
528931800
5290221700
5291211700
529231800
5293111500
529431800
529531800
529641400
5297221700
5298121500
5299111500
5300231700
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;