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,976–4,000 of 5,412

order_line, page 160 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
397641400
3977111500
3978121500
397931800
398031800
3981211700
398241400
3983111500
3984111500
398531800
398641400
3987221700
3988121500
398931800
3990211700
399141400
3992121500
39931371500
3994111500
399531800
3996121500
3997131500
3998251700
399931800
400031800
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;