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,376–4,400 of 5,412

order_line, page 176 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4376121500
4377111500
437831800
4379141500
438041400
4381151500
438231800
4383231700
438431800
438531800
4386211700
4387121500
438841400
438931800
439041400
4391131500
4392141500
4393121500
439441400
439541400
4396131500
439731800
439841400
4399121500
4400131500
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;