Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 1,476–1,500 of 5,412

order_line, page 60 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1476211700
1477131500
147831800
1479241700
148031800
1481111500
1482221700
148331800
148441400
148541400
1486231700
1487211700
148831800
1489221700
1490251700
149131800
1492141500
1493111500
1494221700
149531800
1496131500
149731800
1498251700
1499241700
150031800
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;