Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 4,851–4,875 of 5,412

order_line, page 195 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4851131500
4852121500
485341400
4854111500
485531800
4856141500
485741400
485841400
4859151500
486041400
4861111500
48621471500
4863111500
4864111500
4865111500
486641400
486731800
4868121500
486941400
487041400
4871131500
4872231700
48731501500
487431800
487541400
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;