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,051–1,075 of 5,412

order_line, page 43 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1051111500
1052111500
1053241700
105431800
10551581500
1056151500
105741400
1058121500
1059121500
106031800
106131800
106231800
1063211700
1064141500
1065211700
1066121500
1067121500
106831800
106931800
1070141500
1071231700
107231800
107331800
107431800
1075121500
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;