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,776–1,800 of 5,412

order_line, page 72 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1776211700
1777241700
1778221700
177931800
1780131500
1781221700
1782211700
1783121500
178441400
178541400
1786211700
1787231700
17881531500
1789211700
179041400
1791121500
1792221700
1793141500
1794131500
1795121500
179641400
17971491500
1798111500
1799151500
180041400
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;