Foreign keys with Sequelize are not created
问题 I use Sequelize for my Server (with mysql dialect); in Sequelize's documentation is written that this: var Task = this.sequelize.define('Task', { title: Sequelize.STRING }) , User = this.sequelize.define('User', { username: Sequelize.STRING }) User.hasMany(Task) Task.belongsTo(User) creates automatically foreign key references with constraints; but for me this doesn't happen: var Shop = sequelize.define('Shop', { name: Sequelize.STRING, address: Sequelize.STRING, phone: Sequelize.STRING,