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,626–2,650 of 5,412

order_line, page 106 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2626111500
2627231700
2628121500
262941400
2630131500
2631141500
2632111500
2633221700
2634121500
2635211700
2636141500
263741400
2638131500
263941400
264031800
2641121500
264241400
264341400
264431800
264531800
2646211700
264741400
264841400
264941400
2650111500
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;