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,626–1,650 of 5,412

order_line, page 66 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1626121500
162731800
162841400
1629111500
1630111500
163141400
1632141500
1633131500
163431800
1635241700
163631800
1637221700
1638131500
1639221700
164031800
1641131500
1642121500
1643241700
164431800
1645141500
1646151500
1647241700
1648131500
164941400
1650121500
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;