Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 5,201–5,225 of 5,412

order_line, page 209 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
520141400
520231800
5203111500
5204111500
5205211700
520631800
5207151500
5208121500
520941400
5210111500
5211121500
5212221700
5213231700
5214211700
521531800
521631800
521731800
5218121500
521931800
5220141500
522131800
522231800
5223221700
5224221700
522531800
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;