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,476–4,500 of 5,412

order_line, page 180 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4476121500
4477121500
4478121500
447941400
4480121500
4481111500
4482121500
4483121500
4484121500
4485211700
448631800
448741400
4488121500
4489121500
449031800
449141400
4492111500
4493121500
4494121500
4495211700
4496221700
4497211700
449831800
449931800
450041400
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;