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,101–2,125 of 5,412

order_line, page 85 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2101251700
210231800
210331800
210431800
2105211700
2106111500
2107111500
210841400
210941400
2110111500
2111221700
2112111500
2113111500
2114151500
2115241700
211631800
211731800
211831800
211941400
2120221700
212131800
2122131500
2123121500
2124111500
212541400
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;