Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 1,501–1,525 of 5,412

order_line, page 61 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
1501151500
150231800
150331800
1504251700
150531800
150631800
150731800
1508111500
1509121500
1510121500
1511141500
1512121500
1513211700
1514121500
151541400
151631800
1517221700
1518121500
1519251700
152031800
1521151500
152231800
152331800
152441400
1525111500
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;