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,826–2,850 of 5,412

order_line, page 114 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
2826111500
2827121500
2828121500
282931800
2830121500
283141400
2832121500
2833221700
2834221700
283531800
2836141500
283741400
283841400
2839121500
2840121500
284131800
284241400
28431501500
284431800
2845211700
284641400
2847231700
284831800
284931800
285041400
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;