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,101–5,125 of 5,412

order_line, page 205 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
5101151500
5102151500
5103241700
510431800
5105121500
5106231700
510741400
5108121500
5109141500
511031800
5111121500
5112121500
511331800
5114111500
5115111500
5116241700
511731800
511831800
5119231700
512041400
5121211700
5122131500
5123121500
5124111500
5125111500
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;