-- Rollback: Remove user_role_profile_id columns
-- WARNING: This will fail if FK constraints exist
ALTER TABLE photographer_profiles DROP COLUMN IF EXISTS user_role_profile_id;
ALTER TABLE tutor_profiles DROP COLUMN IF EXISTS user_role_profile_id;
ALTER TABLE makeup_artist_profiles DROP COLUMN IF EXISTS user_role_profile_id;
ALTER TABLE developer_profiles DROP COLUMN IF EXISTS user_role_profile_id;
ALTER TABLE video_editor_profiles DROP COLUMN IF EXISTS user_role_profile_id;
ALTER TABLE graphic_designer_profiles DROP COLUMN IF EXISTS user_role_profile_id;
ALTER TABLE social_media_manager_profiles DROP COLUMN IF EXISTS user_role_profile_id;
ALTER TABLE fitness_trainer_profiles DROP COLUMN IF EXISTS user_role_profile_id;
ALTER TABLE catering_service_profiles DROP COLUMN IF EXISTS user_role_profile_id;
ALTER TABLE ugc_content_creator_profiles DROP COLUMN IF EXISTS user_role_profile_id;

DROP INDEX IF EXISTS idx_photographer_profiles_user_role;
DROP INDEX IF EXISTS idx_tutor_profiles_user_role;
DROP INDEX IF EXISTS idx_makeup_artist_profiles_user_role;
DROP INDEX IF EXISTS idx_developer_profiles_user_role;
DROP INDEX IF EXISTS idx_video_editor_profiles_user_role;
DROP INDEX IF EXISTS idx_graphic_designer_profiles_user_role;
DROP INDEX IF EXISTS idx_social_media_manager_profiles_user_role;
DROP INDEX IF EXISTS idx_fitness_trainer_profiles_user_role;
DROP INDEX IF EXISTS idx_catering_service_profiles_user_role;
DROP INDEX IF EXISTS idx_ugc_content_creator_profiles_user_role;
