sequelize import is not a function code example
Example 1: TypeError: sequelize.import is not a function
const model = require(path.join(__dirname, file))(sequelize, Sequelize.DataTypes)
Example 2: defineCall is not a function at Sequelize.import sequelize.js
//BASICALLY DON'T ADD EMPTY FILES TO YOUR MODELS FOLDER
/* I experienced this issue, the reason was because I added a file on my models directory
that is not a model, just some code that's meant to do some stuff.
I suppose we can only add model files on the models directory,
as index.js checks every file in the whole directory. */