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,701–4,725 of 5,412

order_line, page 189 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4701131500
470241400
4703141500
4704221700
470531800
4706141500
4707111500
4708131500
4709111500
471041400
4711241700
4712251700
4713221700
471431800
4715221700
4716141500
4717121500
4718131500
4719121500
472041400
4721141500
4722121500
472341400
4724211700
472531800
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;