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,851–3,875 of 5,412

order_line, page 155 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3851121500
3852111500
3853211700
3854221700
3855121500
3856211700
385731800
3858141500
385941400
3860111500
3861141500
3862211700
3863251700
386431800
3865141500
3866111500
3867111500
3868221700
3869211700
3870111500
3871231700
387231800
3873111500
3874211700
387531800
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;