Skip to content
Louvre Ops DB

Table

order_line

Products and quantities in an order, with the price charged.

Replaces in 2020: Invoices

Rows 5,251–5,275 of 5,412

order_line, page 211 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
525141400
525241400
5253221700
5254111500
525541400
525641400
525731800
5258121500
525941400
5260211700
526131800
5262211700
5263121500
5264121500
5265211700
5266111500
5267121500
5268221700
5269211700
527031800
527131800
527241400
5273131500
5274121500
5275121500
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;