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,826–4,850 of 5,412

order_line, page 194 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4826111500
4827221700
4828141500
482931800
4830121500
4831221700
4832231700
483331800
483441400
4835151500
4836221700
4837221700
483831800
483931800
4840111500
4841111500
4842111500
4843221700
4844121500
4845121500
4846121500
484741400
4848241700
484931800
4850121500
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;