Skip to content
Louvre Ops DB

Table

order_line

Products and quantities in an order, with the price charged.

Replaces in 2020: Invoices

Rows 3,401–3,425 of 5,412

order_line, page 137 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3401211700
340231800
340341400
340441400
340541400
3406131500
3407141500
340831800
3409121500
3410111500
341131800
3412111500
3413221700
341431800
3415211700
3416221700
3417131500
3418211700
3419141500
3420211700
3421251700
342231800
342341400
3424111500
342541400
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;