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,751–3,775 of 5,412

order_line, page 151 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3751121500
3752121500
3753231700
375431800
3755221700
375631800
375731800
375841400
3759221700
3760211700
3761231700
376231800
376331800
376431800
376541400
3766211700
3767221700
3768211700
3769251700
3770121500
3771221700
3772221700
377331800
3774121500
3775111500
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;