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,676–4,700 of 5,412

order_line, page 188 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
46761321500
467731800
4678211700
4679111500
4680121500
4681211700
468231800
4683211700
4684131500
468531800
468641400
4687111500
4688141500
468931800
469031800
4691231700
4692221700
4693221700
469431800
4695121500
469641400
469731800
4698211700
4699111500
470031800
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;