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,251–1,275 of 5,412

order_line, page 51 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
125141400
1252121500
125331800
1254121500
1255211700
125631800
1257221700
1258111500
1259221700
126031800
1261221700
126231800
1263121500
126431800
1265221700
126631800
1267231700
1268121500
126941400
1270121500
1271221700
1272251700
1273211700
127431800
1275211700
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;