-- Remove auto-seeding of departments and roles on event creation.
-- These will now be offered as suggestions in the UI instead.

-- Drop the existing trigger and function
DROP TRIGGER IF EXISTS on_event_created_seed_defaults ON events;
DROP FUNCTION IF EXISTS public.seed_event_defaults();

-- Delete all existing seeded departments and roles
-- (cascades will clean up member-department assignments, dashboards, panels, checklists, notes)
DELETE FROM event_departments;
DELETE FROM event_roles;
