In general it is not allowed to enter a restaurant with a dog, but there are plenty of restaurants that have no problem with that at all. However, sitting on a terrace with a dog normally is not a problem, but, of course, there are exceptions too. The general rule is that dogs are not allowed on public beaches.