当我定义两个表之间的多对多关联时,我得到了以下错误: Error: Teacher.belongsToMany called with something that's not a subclassthis; this.belongsToMany(models.Teacher, { ^
Error: Teacher.<em
使用的版本-“后缀”:"^5.21.5“我需要你的指导来解决这个问题.throw new Error(`${this.name}.belongsToMany called with something that's not a subclass of Sequelize.Model`);
Error: Batch.belongsToMany called with something that's not a subclass of Sequelize<
我有一个MySQL数据库,所有东西都在snake_case中。问题是,Sequelize不断为这个连接模型生成带有PascalCase列和表名的查询。MeetingGuest是使用sequelize-cli生成的,并进行了如下调整:module.exports = (sequelize* This method is not a part of Sequelize lif