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,951–3,975 of 5,412

order_line, page 159 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
395141400
395241400
3953111500
3954221700
395541400
3956121500
395741400
395841400
3959211700
396031800
3961111500
3962121500
3963221700
3964121500
396531800
3966121500
3967141500
3968121500
3969221700
397031800
3971231700
397231800
397341400
3974141500
3975121500
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;