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,776–3,800 of 5,412

order_line, page 152 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3776211700
377731800
377841400
3779111500
378041400
3781121500
3782211700
378331800
3784121500
3785121500
378641400
378741400
378841400
3789121500
379041400
3791111500
3792111500
379341400
379431800
379541400
3796211700
3797111500
3798141500
379941400
380041400
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;