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,076–3,100 of 5,412

order_line, page 124 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3076111500
307741400
3078111500
307941400
3080111500
3081211700
308231800
3083221700
308431800
3085151500
3086111500
3087231700
308831800
308941400
309041400
3091231700
309231800
3093211700
3094141500
3095111500
3096141500
3097131500
3098231700
309941400
310031800
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;