You might try raised beds and put down some rat wire, or hardware cloth, first. It won’t help if they come out of the ground and crawl over, but it will keep them from tunneling under and up.
We’ve tried that and it didn’t work. These are Harvard educated prairie dogs. For whatever reason, if I have the veggies in big pots (like the tomatoes) they’re untouched.
I just miss having a “real” garden.
Thank you for the suggestion.