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,526–3,550 of 5,412

order_line, page 142 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3526211700
3527221700
352831800
352931800
3530221700
353131800
3532111500
353331800
3534121500
3535231700
353631800
3537221700
3538211700
3539121500
354041400
354141400
3542151500
3543221700
3544251700
3545241700
354631800
3547111500
3548121500
3549141500
3550111500
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;