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,451–4,475 of 5,412

order_line, page 179 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4451111500
445241400
4453111500
4454111500
4455121500
445631800
4457121500
4458111500
4459111500
446041400
4461121500
4462231700
446331800
4464131500
4465231700
4466121500
446741400
446841400
446941400
4470111500
4471111500
4472111500
4473111500
4474211700
4475121500
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;