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,126–1,150 of 5,412

order_line, page 46 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1126111500
1127121500
1128111500
112941400
113041400
1131121500
1132141500
113341400
1134121500
1135241700
113631800
1137221700
113831800
1139211700
1140121500
1141221700
114231800
114331800
1144111500
1145211700
1146141500
114731800
1148231700
1149141500
1150111500
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;