Skip to content
Louvre Ops DB

Table

order_line

Products and quantities in an order, with the price charged.

Replaces in 2020: Invoices

Rows 1,851–1,875 of 5,412

order_line, page 75 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1851111500
1852231700
185331800
1854131500
1855121500
1856111500
185731800
185841400
185941400
186041400
1861121500
1862221700
186331800
1864121500
1865221700
1866111500
1867121500
186841400
1869151500
187041400
1871231700
187231800
187331800
1874111500
1875111500
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;