sequelize create record with foreign key constraint

JavaScript
Project.belongsTo(User, {foreignKey: 'user_id'})

Source

Also in JavaScript: