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

order_line, page 183 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
455131800
455231800
4553111500
4554121500
455531800
4556141500
455741400
455831800
455931800
456031800
456141400
4562121500
4563111500
4564231700
4565121500
4566111500
456741400
4568121500
4569241700
4570121500
457141400
457231800
4573141500
4574231700
457531800
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;