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,501–4,525 of 5,412

order_line, page 181 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
450131800
4502131500
4503111500
4504211700
4505221700
450631800
450731800
4508221700
450931800
451041400
451141400
4512151500
4513241700
451431800
4515121500
4516121500
4517131500
4518121500
451941400
4520221700
4521131500
4522121500
4523121500
4524151500
452531800
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;