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,451–2,475 of 5,412

order_line, page 99 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2451211700
2452211700
2453241700
245431800
2455111500
2456121500
245741400
245841400
2459111500
2460221700
2461141500
2462211700
246331800
2464121500
246541400
2466241700
246731800
2468211700
2469111500
2470121500
247141400
2472121500
2473121500
2474221700
2475121500
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;