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,326–2,350 of 5,412

order_line, page 94 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2326121500
2327121500
2328111500
2329111500
2330121500
2331221700
2332111500
233341400
2334251700
2335111500
233631800
233731800
233831800
233931800
2340211700
2341221700
234241400
23431431500
2344121500
2345121500
2346221700
2347131500
234841400
2349111500
2350111500
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;