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,026–5,050 of 5,412

order_line, page 202 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
5026131500
502741400
5028241700
5029121500
5030131500
503141400
503241400
5033111500
5034131500
503541400
5036221700
5037221700
5038111500
503931800
5040121500
5041221700
5042121500
5043111500
5044211700
5045121500
504631800
504731800
5048111500
5049111500
5050111500
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;