Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 4,076–4,100 of 5,412

order_line, page 164 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4076141500
407741400
40781431500
4079121500
4080121500
4081111500
4082221700
408331800
4084151500
408541400
408631800
4087111500
4088211700
4089111500
4090231700
4091121500
409241400
4093121500
4094121500
4095121500
409641400
4097111500
409841400
409941400
4100111500
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;