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,401–1,425 of 5,412

order_line, page 57 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1401121500
1402251700
140331800
140431800
140541400
1406121500
140731800
1408251700
1409131500
141041400
141131800
141231800
141341400
1414111500
1415221700
141631800
1417111500
1418151500
141941400
1420221700
1421221700
1422121500
142341400
1424111500
1425221700
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;