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,526–4,550 of 5,412

order_line, page 182 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4526231700
4527121500
4528151500
4529211700
453031800
4531121500
4532111500
453331800
4534131500
4535151500
4536111500
4537211700
4538111500
453941400
4540111500
4541141500
4542131500
454341400
4544121500
4545121500
4546111500
4547141500
4548241700
454931800
455031800
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;