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,426–4,450 of 5,412

order_line, page 178 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4426121500
4427221700
4428121500
4429111500
4430141500
4431221700
443231800
4433221700
4434211700
4435111500
4436141500
443731800
443841400
4439141500
4440131500
444141400
4442111500
444341400
444441400
4445241700
444631800
4447221700
4448121500
444941400
445041400
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;