Sequelize hasMany is working fine but the inverse relation is not working
问题 I am trying to work with mysql relations in Node Js(express Js) using Sequelize. User.hasMany(Post); work just fine, but when i try to inverse it in Post model like: Post.belongsTo(User); got this error: throw new Error(${source.name}.${_.lowerFirst(Type.name)} called with something that's not a subclass of Sequelize.Model); Error: post.belongsTo called with something that's not a subclass of Sequelize.Model User model like: const Sequelize = require('sequelize'); const db = require('..