Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 3,376–3,400 of 5,412

order_line, page 136 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
337641400
3377231700
3378121500
337931800
3380221700
3381121500
3382121500
3383121500
3384221700
3385241700
33861461500
338731800
338831800
3389221700
3390121500
3391211700
339241400
3393111500
3394221700
339541400
339631800
3397121500
3398111500
3399231700
3400221700
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;