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,201–2,225 of 5,412

order_line, page 89 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2201121500
2202121500
220341400
2204111500
220541400
2206121500
220741400
220831800
2209231700
2210111500
221141400
2212221700
221331800
221431800
2215151500
2216211700
221731800
2218221700
221931800
222031800
2221211700
2222211700
222331800
222431800
2225111500
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;