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,576–3,600 of 5,412

order_line, page 144 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
357631800
3577121500
357841400
3579141500
3580111500
3581131500
358231800
3583241700
3584211700
3585111500
3586141500
358731800
3588131500
3589221700
3590111500
3591211700
3592231700
3593221700
359431800
359531800
3596121500
3597221700
359841400
3599221700
360041400
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;