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,651–4,675 of 5,412

order_line, page 187 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4651221700
465231800
4653131500
4654131500
4655211700
465631800
4657121500
465841400
4659241700
466041400
4661221700
466231800
4663211700
4664221700
466531800
4666111500
4667121500
466841400
4669221700
467031800
4671141500
4672111500
4673221700
4674111500
4675111500
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;