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,151–3,175 of 5,412

order_line, page 127 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
315141400
3152221700
315331800
315431800
315541400
3156111500
3157251700
3158111500
3159211700
3160221700
316131800
316231800
316341400
3164211700
3165121500
3166211700
3167211700
316841400
3169151500
3170121500
3171111500
3172111500
3173221700
317441400
3175111500
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;