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,051–3,075 of 5,412

order_line, page 123 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
305131800
3052251700
3053111500
3054111500
305541400
3056111500
305741400
3058121500
305941400
3060221700
3061131500
3062121500
3063211700
306441400
3065111500
306641400
306741400
306841400
3069121500
3070121500
3071221700
307231800
3073111500
3074211700
307531800
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;