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,901–2,925 of 5,412

order_line, page 117 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2901121500
2902221700
290331800
2904221700
2905121500
2906111500
290741400
290831800
2909141500
2910111500
2911111500
2912121500
2913131500
291441400
291531800
2916121500
2917111500
291831800
291931800
292041400
2921141500
2922111500
292331800
2924221700
2925241700
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;