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,726–4,750 of 5,412

order_line, page 190 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4726141500
472741400
4728211700
4729111500
473031800
4731111500
473241400
4733121500
473431800
473531800
4736231700
473731800
473831800
473931800
474041400
4741121500
4742131500
4743211700
474431800
4745241700
4746121500
4747121500
4748121500
4749131500
4750111500
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;