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,701–3,725 of 5,412

order_line, page 149 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3701211700
3702221700
3703111500
3704121500
3705241700
370631800
370731800
370831800
3709211700
371031800
371141400
371241400
3713111500
371431800
3715121500
3716221700
371731800
3718111500
371941400
3720121500
3721121500
3722121500
372341400
3724111500
372541400
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;