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,301–1,325 of 5,412

order_line, page 53 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1301211700
1302231700
1303111500
1304121500
1305221700
1306131500
1307211700
1308111500
130941400
1310221700
1311121500
131241400
1313121500
1314231700
131531800
1316241700
131731800
1318111500
1319231700
1320111500
1321221700
1322231700
132331800
1324111500
1325111500
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;