This package generates CodeIgniter 4 migration files from SQL dump files. It has support for foreign keys, triggers, and DB prefix.
Install with Composer:
composer require bertugfahriozer/sql2migration
php spark sql2migration /path/to/database.sql
For details: Documentation