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,026–3,050 of 5,412

order_line, page 122 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3026141500
3027111500
3028221700
302931800
303041400
303141400
303241400
3033121500
3034221700
3035221700
303631800
303741400
3038111500
3039111500
3040121500
3041121500
3042111500
3043221700
3044231700
304531800
304631800
3047221700
3048121500
3049151500
3050231700
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;