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,551–3,575 of 5,412

order_line, page 143 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3551111500
3552141500
3553211700
3554211700
355531800
3556121500
3557121500
355841400
355941400
356031800
3561211700
356231800
356341400
3564111500
3565151500
3566221700
356731800
356831800
356931800
3570121500
3571221700
3572111500
357331800
357441400
3575121500
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;