Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 1,701–1,725 of 5,412

order_line, page 69 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
170141400
1702111500
1703221700
1704121500
1705221700
1706111500
1707131500
170831800
1709221700
171031800
1711131500
171231800
1713131500
1714241700
1715221700
171631800
1717221700
1718211700
1719221700
1720211700
172141400
1722241700
172331800
172441400
1725211700
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;