Skip to content
Louvre Ops DB

Table

order_line

Products and quantities in an order, with the price charged.

Replaces in 2020: Invoices

Rows 3,226–3,250 of 5,412

order_line, page 130 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
322631800
322731800
3228211700
3229121500
3230121500
323141400
323231800
323331800
323431800
323531800
3236121500
323741400
3238121500
323941400
3240211700
3241211700
324231800
324331800
3244141500
3245121500
324641400
324741400
324831800
3249111500
325031800
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;