There are a lot of things to consider and my initial reaction would be to be very careful buying into an existing restaurant business. You need to get due diligence done on the property by someone completely independent of the deal.
I have noticed the eating habits of tourists change over the time I have been here. People have more options for buying food, like with Grab, renting a villa with kitchen/chef etc.
The ex-Ceo of Uber has started a new business called CloudKitchens and that business model could work very well in Bali:
https://fortune.com/2019/11/08/uber-travis-kalanick-cloud-kitchens/
Basically you set up commercial kitchens to rent out to businesses and Grab/Gojek drivers deliver the food, with no actual seating.
My preference would be set up an "attraction" type of business, that is "instantgram worthy" that will work well for a while until everyone starts to copy your idea (think of the Bali swing)
Since we have kids we often look for places to eat/have a drink where there is something to amuse the kids as well. There are some businesses like this, but I think a good market for both expats and tourists.