Skip to content
Louvre Ops DB

Table

order_line

Products and quantities in an order, with the price charged.

Replaces in 2020: Invoices

Rows 3,676–3,700 of 5,412

order_line, page 148 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3676221700
367731800
367831800
3679121500
368031800
3681111500
3682241700
368331800
3684131500
368531800
368631800
368741400
3688121500
3689111500
3690121500
3691121500
3692121500
3693231700
369431800
369531800
3696131500
3697111500
3698121500
3699251700
370031800
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;