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,926–2,950 of 5,412

order_line, page 118 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
292641400
2927221700
2928121500
2929211700
2930121500
2931111500
2932121500
2933221700
293431800
293531800
293641400
2937121500
2938111500
293941400
2940111500
294131800
2942131500
294331800
2944211700
2945131500
2946131500
2947221700
2948111500
294941400
295041400
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;