Skip to content
Louvre Ops DB

Table

order_line

Products and quantities in an order, with the price charged.

Replaces in 2020: Invoices

Rows 4,101–4,125 of 5,412

order_line, page 165 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4101131500
4102111500
4103141500
4104231700
410541400
4106131500
4107111500
4108151500
4109121500
4110141500
4111121500
4112221700
4113111500
4114231700
411531800
4116221700
4117221700
411831800
4119141500
4120211700
412131800
4122111500
412331800
412431800
4125151500
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;