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,901–3,925 of 5,412

order_line, page 157 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3901221700
390231800
3903131500
3904151500
390541400
390641400
3907221700
390831800
3909241700
391031800
3911121500
3912111500
3913131500
3914111500
3915111500
391641400
391731800
3918111500
391931800
3920131500
392141400
3922121500
3923121500
392431800
3925221700
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;