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,551–2,575 of 5,412

order_line, page 103 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
255131800
2552221700
255341400
2554221700
2555141500
255641400
25571421500
255841400
2559111500
256031800
256131800
256231800
256341400
256441400
2565221700
256631800
2567251700
2568131500
2569111500
2570111500
2571221700
2572131500
257341400
2574121500
2575221700
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;