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,526–2,550 of 5,412

order_line, page 102 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
252631800
2527121500
2528231700
2529141500
253041400
2531211700
2532231700
253331800
253431800
2535111500
2536151500
2537231700
253831800
2539211700
2540121500
254131800
2542121500
2543231700
254431800
2545211700
2546121500
2547141500
2548141500
2549251700
255031800
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;