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,801–3,825 of 5,412

order_line, page 153 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
380131800
380241400
380341400
3804131500
380531800
380631800
3807121500
3808111500
3809241700
3810211700
3811241700
381231800
3813121500
3814121500
3815121500
3816111500
3817231700
3818121500
3819121500
3820221700
3821241700
382231800
3823231700
382431800
3825131500
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;