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,951–2,975 of 5,412

order_line, page 119 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2951221700
2952211700
2953221700
295431800
2955111500
2956141500
2957131500
2958141500
295931800
2960211700
296141400
2962111500
2963221700
296441400
296541400
2966121500
296741400
2968111500
296931800
297031800
297141400
2972141500
2973131500
297441400
297541400
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;