-- Drop the event_attendance join table first (has foreign keys)
DROP TABLE IF EXISTS "event_attendance" CASCADE;

-- Drop the events table (references event_templates)
DROP TABLE IF EXISTS "events" CASCADE;

-- Drop the event_templates table
DROP TABLE IF EXISTS "event_templates" CASCADE;

-- Drop the eventId column from schedule_events (referenced dropped events table)
ALTER TABLE "schedule_events" DROP COLUMN IF EXISTS "eventId";
