define association:
Theme.belongsToMany(Product,{through:theme_product,foreignKey:"theme_id"})
Product.belongsToMany(Theme,{through:theme_product,foreignKey:"product_id"})
theme_product is the intermediate table
error message:
throw new Error(this.name + ".belongsToMany called with something that\"snot a subclass of Sequelize.Model");
^
Error: Theme.belongsToMany called with something that"s not a subclass of Sequelize.Model