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,551–1,575 of 5,412

order_line, page 63 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
155141400
1552151500
1553211700
1554221700
155541400
1556211700
1557141500
1558231700
1559121500
1560111500
1561221700
156231800
156341400
1564211700
1565121500
1566111500
1567211700
1568121500
1569111500
1570231700
1571221700
1572131500
1573241700
157431800
1575211700
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;