-- 900_triggers_and_functions_down.sql
-- Rollback: Drop triggers and function added by 900

DROP TRIGGER IF EXISTS update_users_updated_at ON public.users;
DROP TRIGGER IF EXISTS update_federated_identities_updated_at ON public.federated_identities;
DROP TRIGGER IF EXISTS update_user_sessions_updated_at ON public.user_sessions;
DROP TRIGGER IF EXISTS update_roles_updated_at ON public.roles;
DROP TRIGGER IF EXISTS update_user_profiles_updated_at ON public.user_profiles;
DROP TRIGGER IF EXISTS update_user_settings_updated_at ON public.user_settings;
DROP TRIGGER IF EXISTS update_admin_settings_updated_at ON public.admin_settings;
DROP TRIGGER IF EXISTS update_files_updated_at ON public.files;
DROP TRIGGER IF EXISTS update_file_uploads_updated_at ON public.file_uploads;
DROP TRIGGER IF EXISTS update_file_conversions_updated_at ON public.file_conversions;
DROP TRIGGER IF EXISTS update_tracks_updated_at ON public.tracks;
DROP TRIGGER IF EXISTS update_track_versions_updated_at ON public.track_versions;
DROP TRIGGER IF EXISTS update_playlists_updated_at ON public.playlists;
DROP TRIGGER IF EXISTS update_playlist_collaborators_updated_at ON public.playlist_collaborators;
DROP TRIGGER IF EXISTS update_playlist_follows_updated_at ON public.playlist_follows;
DROP TRIGGER IF EXISTS update_queues_updated_at ON public.queues;
DROP TRIGGER IF EXISTS update_track_plays_updated_at ON public.track_plays;
DROP TRIGGER IF EXISTS update_track_shares_updated_at ON public.track_shares;
DROP TRIGGER IF EXISTS update_track_comments_updated_at ON public.track_comments;
DROP TRIGGER IF EXISTS update_hls_streams_updated_at ON public.hls_streams;
DROP TRIGGER IF EXISTS update_rooms_updated_at ON public.rooms;
DROP TRIGGER IF EXISTS update_room_members_updated_at ON public.room_members;
DROP TRIGGER IF EXISTS update_messages_updated_at ON public.messages;

DROP FUNCTION IF EXISTS update_updated_at_column();
