Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 5,051–5,075 of 5,412

order_line, page 203 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
5051111500
505241400
5053231700
5054251700
505531800
505631800
505731800
5058121500
5059111500
5060211700
5061121500
5062121500
506331800
5064221700
506531800
506641400
5067111500
506831800
5069141500
5070121500
5071121500
5072111500
5073211700
5074111500
507541400
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;