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,026–1,050 of 5,412

order_line, page 42 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1026131500
1027141500
1028121500
1029141500
1030221700
1031121500
103241400
103341400
1034121500
103541400
1036131500
103731800
1038251700
1039221700
104041400
104141400
1042121500
1043151500
1044151500
1045121500
1046121500
104741400
104831800
1049141500
105031800
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;