Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 3,501–3,525 of 5,412

order_line, page 141 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3501211700
3502111500
3503221700
3504211700
3505121500
350631800
3507111500
3508241700
350931800
3510141500
3511121500
351241400
3513111500
35141331500
3515241700
351631800
351731800
3518221700
351931800
352031800
3521211700
3522241700
352331800
352441400
3525111500
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;