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,351–1,375 of 5,412

order_line, page 55 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1351231700
135231800
1353241700
135431800
1355231700
1356221700
1357221700
135831800
1359221700
136031800
1361111500
1362111500
1363111500
1364111500
136541400
1366111500
1367111500
1368111500
1369111500
137031800
1371111500
137241400
137341400
1374131500
137531800
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;