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,401–4,425 of 5,412

order_line, page 177 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4401121500
4402111500
4403221700
4404221700
440531800
4406121500
440731800
4408121500
440931800
4410211700
4411131500
441241400
4413121500
4414131500
4415221700
4416231700
441731800
4418121500
4419131500
4420121500
4421131500
4422121500
442341400
4424231700
4425121500
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;