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,376–1,400 of 5,412

order_line, page 56 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1376111500
1377221700
1378131500
137941400
1380221700
1381241700
1382221700
138331800
1384221700
1385111500
138641400
1387221700
1388141500
1389121500
1390121500
1391221700
1392231700
1393111500
1394131500
1395121500
1396221700
139731800
139831800
139941400
1400251700
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;