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,151–5,175 of 5,412

order_line, page 207 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
5151111500
5152211700
515341400
5154121500
5155121500
5156111500
515731800
5158221700
515931800
516031800
516141400
516241400
5163111500
5164111500
5165121500
516641400
5167111500
5168111500
5169111500
5170211700
5171221700
5172121500
517341400
5174121500
5175131500
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;