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,676–2,700 of 5,412

order_line, page 108 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2676221700
2677121500
267841400
2679211700
2680111500
2681211700
2682221700
268341400
2684121500
268541400
2686241700
2687121500
268841400
268931800
2690111500
2691111500
2692121500
269341400
2694131500
2695111500
2696121500
269731800
2698221700
269941400
2700241700
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;