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,201–1,225 of 5,412

order_line, page 49 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
120141400
12021521500
120331800
1204121500
120541400
1206121500
120741400
1208131500
120941400
1210231700
1211211700
12121321500
1213141500
1214211700
1215221700
1216211700
1217221700
1218221700
1219111500
1220111500
1221111500
1222211700
1223211700
122431800
122531800
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;