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,451–1,475 of 5,412

order_line, page 59 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1451221700
145231800
145331800
145431800
145531800
145641400
145731800
145841400
145931800
1460121500
1461211700
1462131500
1463121500
146431800
146541400
146641400
146741400
1468131500
1469121500
1470221700
1471121500
147241400
147341400
1474241700
147531800
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;