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,576–1,600 of 5,412

order_line, page 64 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
157631800
157731800
1578111500
1579221700
1580111500
1581121500
1582121500
158341400
1584211700
1585211700
158641400
158741400
1588211700
158941400
159031800
1591121500
1592121500
1593211700
159441400
1595231700
1596111500
1597231700
159841400
159931800
1600111500
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;