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,176–3,200 of 5,412

order_line, page 128 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3176111500
3177221700
317831800
3179221700
318031800
318141400
3182221700
3183241700
318431800
318531800
3186111500
3187121500
3188211700
3189111500
3190211700
31911311500
3192121500
3193111500
3194141500
319541400
3196131500
3197221700
3198141500
3199121500
3200221700
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;