Student.belongsToMany(Class, { through: Enrollment }); Class.belongsToMany(Student, { through: Enrollment });