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,676–1,700 of 5,412

order_line, page 68 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
167631800
1677221700
167841400
167941400
1680121500
168141400
168241400
1683141500
1684221700
168541400
16861391500
168741400
1688121500
1689121500
1690221700
1691111500
1692121500
1693231700
1694121500
169541400
1696241700
1697121500
169841400
1699111500
170041400
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;