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,751–4,775 of 5,412

order_line, page 191 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
475141400
475241400
475331800
4754221700
4755121500
475631800
475741400
4758241700
475931800
476031800
4761221700
476231800
4763251700
4764121500
4765131500
4766211700
4767111500
4768111500
4769211700
477041400
4771111500
4772151500
4773121500
4774211700
4775141500
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;