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,901–4,925 of 5,412

order_line, page 197 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
4901241700
490231800
490331800
4904131500
4905221700
490631800
4907141500
4908121500
490941400
4910111500
4911111500
491241400
4913221700
491441400
4915221700
491631800
4917111500
4918141500
4919121500
4920131500
4921121500
492241400
4923221700
4924131500
492541400
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;