Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 4,126–4,150 of 5,412

order_line, page 166 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
412641400
4127211700
4128221700
4129221700
4130111500
413141400
413241400
4133121500
4134111500
41351521500
413641400
413741400
4138111500
4139131500
4140121500
414141400
4142111500
4143111500
414431800
414541400
4146221700
4147121500
414841400
414941400
4150221700
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;