c08c903e8f
4 endpoints for referral network analysis: full graph with batched aggregation queries, user detail with recursive CTE branch counting, campaign detail with conversion metrics, and search with LIKE escaping. All endpoints rate-limited, scoped queries to prevent full-table scans, depth-limited recursive CTE, fail_closed on expensive graph endpoint.