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

order_line, page 199 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4951111500
4952111500
4953111500
495431800
4955111500
495641400
4957111500
4958121500
4959111500
496041400
496141400
4962121500
496331800
4964121500
496531800
496631800
49671441500
4968221700
4969141500
4970221700
497131800
4972131500
4973121500
49741501500
497541400
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;