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,726–3,750 of 5,412

order_line, page 150 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3726141500
372731800
3728121500
372941400
37301391500
3731121500
3732111500
3733221700
3734121500
3735131500
3736111500
373741400
3738141500
3739151500
3740111500
374141400
374241400
374341400
374441400
3745221700
374631800
3747211700
3748211700
374931800
375041400
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;