You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Throw an error if the user tries to register two models with the same name #15641
The second define should throw an error, because a model named User already exists in sequelize.models.
Describe why you would like this feature to be added to Sequelize
This behavior is dangerous and a source of bugs. Users should remove models manually, and we should ensure that that is possible (i.e. nothing depends on that model), before being able to register a model with the same name.
No, I don't have the time, and I understand that I will need to wait until someone from the community or maintainers is interested in implementing my feature.
Indicate your interest in the addition of this feature by adding the 👍 reaction. Comments such as "+1" will be removed.
Activity