Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 3,451–3,475 of 5,412

order_line, page 139 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3451221700
3452211700
3453221700
345431800
3455111500
3456131500
3457121500
3458121500
3459211700
3460221700
3461221700
3462221700
346331800
3464211700
346531800
3466121500
3467121500
3468121500
3469121500
347031800
3471151500
347241400
3473131500
3474121500
3475221700
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;