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,276–4,300 of 5,412

order_line, page 172 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
427641400
4277211700
4278211700
427931800
4280221700
428141400
428231800
428331800
428441400
4285121500
4286111500
4287121500
428841400
42891381500
429031800
4291221700
4292111500
4293231700
4294221700
4295121500
4296211700
4297121500
429841400
4299221700
4300211700
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;