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,201–4,225 of 5,412

order_line, page 169 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4201121500
420241400
4203121500
420431800
420541400
420631800
4207111500
420841400
4209121500
421041400
4211111500
4212141500
421341400
4214111500
4215211700
421641400
4217141500
421841400
42191501500
4220111500
4221221700
4222141500
422331800
422441400
4225121500
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;