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,276–1,300 of 5,412

order_line, page 52 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1276141500
1277131500
1278111500
1279121500
128041400
1281141500
128231800
1283221700
128431800
1285121500
1286111500
1287111500
1288221700
1289221700
129031800
1291221700
129241400
1293151500
1294221700
129531800
129631800
1297211700
1298231700
129931800
1300221700
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;