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,276–3,300 of 5,412

order_line, page 132 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3276221700
327731800
3278111500
327941400
328041400
3281121500
3282211700
3283221700
3284141500
3285131500
3286111500
328731800
3288151500
3289121500
329041400
329131800
329231800
3293211700
329431800
3295121500
32961411500
3297121500
329841400
3299211700
330041400
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;