Sequelize.js : What's the difference between sequelize.define and model.init?
问题 The documentation doesn't explain the difference between sequelize.define and Model.init. All it says is Internally, sequelize.define calls Model.init What things do I need to consider when choosing which one to use? What are the main differences between the two and what are the consequences for choosing one over the other? It seems like sequelize.init is the preferred method in the documentation - why is that? 回答1: I was recently wondering the same thing when I came across this question. I