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,251–4,275 of 5,412

order_line, page 171 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
425141400
425231800
4253121500
4254241700
425541400
4256221700
425731800
425841400
4259141500
426031800
426141400
4262121500
42631411500
4264121500
4265131500
426631800
426741400
426841400
426931800
4270111500
4271111500
4272131500
427341400
4274131500
4275121500
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;