0
Hello I’m doing a simple championship API, I used the Sequelize
as ORM for my database.
I created the Arbitro table that had only the NAME field and did not have the CPF field in the table.
I had to include the CPF field in the Arbitro table and to do this I would have to use a migrate with Sequelize-CLI
After the sequelize db:migrate
work, to run the project this giving error.
But when executing my project occurs the error below:
Here is the code: https://github.com/leonardocintra/campeonato-api
I searched on the net the cause of the error, but I am new to Nodejs and also each case was a case.
I appreciate anyone who can help. At.
Thanks Lucas! It worked... I removed the index.js folder ... it was created by sequelize init and I thought I had to keep it
– Leonardo Nascimento Cintra