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,851–2,875 of 5,412

order_line, page 115 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
285141400
285241400
2853111500
285441400
2855231700
285631800
2857141500
2858121500
285941400
286041400
2861221700
286231800
286331800
2864111500
2865211700
2866121500
2867221700
286831800
2869141500
2870131500
2871211700
287241400
2873121500
2874131500
2875121500
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;