Categories
Mastering Development

SEQUELIZE: belongsTo called with something that’s not a subclass of Sequelize.Model

I’m newbie with sequelize and I’m trying to assiacite two tables. Users and Projects. I have defined a model for each one called UserModel and ProjectModel and when I try to associate projects with user I’ve got this error: belongsTo called with something that’s not a subclass of Sequelize.Model These are the files where I […]