Skip to content
Louvre Ops DB

Table

order_line

Products and quantities in an order, with the price charged.

Replaces in 2020: Invoices

Rows 2,151–2,175 of 5,412

order_line, page 87 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
215131800
2152121500
2153221700
2154221700
2155131500
2156221700
215731800
2158141500
2159211700
216031800
2161111500
2162231700
216331800
2164111500
216541400
2166111500
2167111500
216841400
2169151500
2170221700
2171121500
217241400
2173211700
217441400
217541400
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;