Skip to content
Louvre Ops DB

Table

order_line

Products and quantities in an order, with the price charged.

Replaces in 2020: Invoices

Rows 2,776–2,800 of 5,412

order_line, page 112 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2776121500
277741400
2778151500
2779121500
2780251700
2781121500
2782221700
278331800
2784121500
2785111500
27861391500
2787221700
278841400
278941400
2790211700
279131800
279231800
2793121500
2794111500
279541400
2796111500
2797211700
2798121500
279941400
2800221700
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;