Skip to content
Louvre Ops DB

Table

order_line

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

Replaces in 2020: Invoices

Rows 2,251–2,275 of 5,412

order_line, page 91 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2251211700
2252111500
225341400
225431800
2255221700
2256211700
2257221700
225831800
225931800
226031800
2261121500
2262111500
2263111500
2264111500
226541400
2266121500
2267111500
2268111500
226931800
2270211700
2271221700
2272231700
227331800
2274211700
227531800
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;