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,601–4,625 of 5,412

order_line, page 185 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4601211700
4602211700
460341400
4604111500
4605111500
460631800
4607111500
4608211700
460931800
461031800
4611121500
4612211700
4613121500
4614121500
4615111500
461641400
4617221700
461831800
4619131500
462041400
4621141500
4622211700
4623211700
4624131500
4625121500
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;