-- Find all local upload URLs
SELECT id, image_url, video_url, thumbnail_url, created_at 
FROM posts 
WHERE image_url LIKE '%/uploads/%' 
   OR video_url LIKE '%/uploads/%' 
   OR thumbnail_url LIKE '%/uploads/%'
ORDER BY created_at DESC
LIMIT 20;

SELECT id, avatar_url, cover_url 
FROM profiles 
WHERE avatar_url LIKE '%/uploads/%' 
   OR cover_url LIKE '%/uploads/%'
LIMIT 20;
