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

order_line, page 154 of 217
order_id→ purchase_order.order_idproduct_id→ product.product_idquantityINTEGERunit_price_centsINTEGER
3826111500
3827211700
38281521500
3829221700
3830111500
383141400
3832111500
383331800
383431800
3835121500
383641400
3837141500
3838131500
383941400
3840131500
3841211700
3842111500
3843231700
384431800
384531800
3846221700
384731800
3848231700
3849131500
3850141500
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;