Código:
https://github.com/carlosfeliciojr/orm-sequelize
Erro:
orm-sequelize on main is 1.0.0 via v18.15.0 npx sequelize-cli db:migrate --debug
Sequelize CLI [Node: 18.15.0, CLI: 6.6.0, ORM: 6.29.3]
Loaded configuration file "api/config/config.json". Using environment "development". == 20230403170740-create-classes: migrating =======
ERROR: Error at Query.run (/Users/carlosfelicio/Documents/projects/nodejs/orm-sequelize/node_modules/sequelize/lib/dialects/mysql/query.js:52:25) at /Users/carlosfelicio/Documents/projects/nodejs/orm-sequelize/node_modules/sequelize/lib/sequelize.js:315:28 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async MySQLQueryInterface.createTable (/Users/carlosfelicio/Documents/projects/nodejs/orm-sequelize/node_modules/sequelize/lib/dialects/abstract/query-interface.js:98:12) at async Object.up (/Users/carlosfelicio/Documents/projects/nodejs/orm-sequelize/api/migrations/20230403170740-create-classes.js:5:5) EXTRA MESSAGE: Failed to open the referenced table 'Levels'