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,151–4,175 of 5,412

order_line, page 167 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
415141400
4152121500
4153111500
415441400
4155121500
4156151500
4157131500
4158111500
415941400
4160111500
4161251700
416231800
416331800
416441400
4165151500
416631800
4167131500
4168131500
4169151500
4170141500
4171121500
4172231700
4173121500
417441400
4175111500
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;