Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 4,226–4,250 of 5,412

order_line, page 170 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
422631800
4227221700
422831800
422931800
4230121500
423131800
4232221700
423331800
4234111500
4235131500
4236111500
423741400
423841400
4239151500
424031800
424141400
4242121500
4243211700
4244241700
4245141500
4246121500
424741400
4248111500
4249141500
425041400
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;