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,526–1,550 of 5,412

order_line, page 62 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1526131500
152741400
1528151500
1529121500
153041400
1531221700
15321371500
1533131500
1534121500
1535241700
1536221700
153731800
1538131500
1539221700
154031800
154131800
154231800
1543211700
1544121500
1545121500
1546211700
1547221700
154831800
1549151500
1550111500
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;