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,776–4,800 of 5,412

order_line, page 192 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4776121500
4777111500
4778121500
477931800
478041400
4781111500
478231800
4783211700
4784121500
4785211700
4786221700
478741400
4788121500
478941400
4790121500
479131800
479241400
4793121500
4794111500
4795221700
4796121500
4797111500
4798211700
4799121500
480041400
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;