Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 1,976–2,000 of 5,412

order_line, page 80 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1976111500
197731800
1978241700
1979121500
198041400
1981221700
1982221700
1983221700
198431800
1985221700
1986111500
198741400
1988121500
1989131500
199031800
199131800
1992131500
1993111500
199431800
199541400
1996251700
199731800
1998121500
1999131500
2000111500
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;