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,426–2,450 of 5,412

order_line, page 98 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
242641400
2427111500
242841400
2429221700
2430221700
243141400
2432131500
2433121500
2434121500
2435121500
243641400
243731800
243831800
2439151500
2440111500
2441111500
2442221700
244331800
2444111500
244531800
2446121500
244731800
2448211700
244931800
2450121500
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;