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,126–3,150 of 5,412

order_line, page 126 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3126111500
3127221700
31281421500
312941400
313041400
313141400
313241400
3133221700
313431800
3135121500
3136121500
3137121500
313831800
3139121500
3140131500
314131800
3142221700
3143251700
314431800
314531800
3146111500
3147221700
3148121500
3149121500
3150121500
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;