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,801–4,825 of 5,412

order_line, page 193 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
480141400
4802141500
4803231700
4804121500
4805151500
4806121500
4807131500
4808221700
480931800
4810121500
481141400
4812141500
4813111500
4814221700
481541400
4816121500
4817111500
4818111500
481941400
4820251700
482131800
482231800
4823241700
4824211700
482531800
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;