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,176–1,200 of 5,412

order_line, page 48 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
117641400
117741400
1178221700
1179121500
118031800
1181221700
118231800
1183131500
1184121500
1185121500
1186211700
1187111500
1188221700
1189211700
119031800
119141400
119241400
119341400
1194131500
119541400
119641400
1197111500
1198211700
119941400
1200211700
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;