I think this won't work because we create a mapping table with ManyToMany where we have two foreign keys and thus two indexes which cannot be of the same name.