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,601–1,625 of 5,412

order_line, page 65 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1601111500
160231800
1603221700
1604111500
1605121500
1606231700
160731800
1608241700
160931800
1610111500
1611251700
161231800
161331800
1614121500
1615131500
1616211700
161731800
1618121500
1619111500
162041400
162131800
162231800
1623111500
1624121500
1625141500
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;