Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 3,251–3,275 of 5,412

order_line, page 131 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3251211700
3252221700
3253121500
3254221700
325531800
3256111500
3257211700
325841400
3259221700
3260111500
3261111500
326241400
326341400
3264221700
326531800
3266141500
3267221700
3268211700
326941400
3270121500
32711311500
3272131500
327341400
3274221700
327531800
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;