Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 5,126–5,150 of 5,412

order_line, page 206 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
5126221700
512731800
5128141500
512941400
513041400
5131211700
5132141500
5133121500
513431800
513531800
513631800
5137121500
5138221700
5139131500
5140121500
514141400
5142121500
514341400
514441400
5145221700
5146131500
514731800
5148121500
514931800
515031800
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;