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,176–5,200 of 5,412

order_line, page 208 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
517631800
5177121500
517841400
5179121500
5180121500
5181111500
518241400
5183111500
518441400
518531800
5186141500
518731800
5188111500
5189221700
5190111500
5191111500
5192121500
5193111500
519431800
5195121500
5196121500
5197121500
5198111500
5199111500
520031800
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;