Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 4,001–4,025 of 5,412

order_line, page 161 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4001231700
400231800
4003211700
4004141500
400541400
400631800
400741400
400841400
4009141500
4010141500
4011241700
4012111500
4013111500
401431800
401541400
4016221700
4017221700
401831800
401941400
4020121500
402141400
402241400
402341400
402431800
402531800
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;