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,151–1,175 of 5,412

order_line, page 47 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
115141400
115231800
115331800
1154121500
115531800
115641400
1157111500
115841400
115941400
1160221700
116141400
1162211700
116331800
1164131500
1165131500
1166141500
1167151500
1168231700
1169131500
1170121500
1171241700
1172221700
1173111500
1174221700
117531800
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;