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,001–1,025 of 5,412

order_line, page 41 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1001111500
1002231700
100331800
1004251700
1005111500
1006111500
1007231700
1008241700
100931800
101031800
1011241700
1012131500
1013121500
1014211700
1015211700
101641400
101741400
101841400
1019241700
102041400
1021211700
102231800
102331800
102441400
1025251700
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;