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,651–1,675 of 5,412

order_line, page 67 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
165141400
1652221700
1653221700
1654121500
1655121500
165641400
165731800
165841400
1659211700
166041400
166141400
166241400
1663121500
1664251700
1665221700
1666141500
166741400
1668221700
166941400
167041400
1671121500
1672131500
167341400
1674111500
1675211700
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;