<objective Clean and format SQL migrations for direct paste into Supabase SQL Editor. Ensures idempotency, proper RLS policies (especially service role patterns), standardized formatting, and dependency documentation. </objective <quick start Clean any SQL migration: 1. Fix typos ( → for comments) 2. Add idempotency ( , ) 3. Fix RLS policies (service role uses , not JWT checks) 4. Remove dead code (unused enums) 5. Standardize casing ( , ) 6. Add dependencies comment at end </quick start <success criteria SQL cleanup is successful when: - All policies and triggers use before - Service role po…