Don't know that the buried wire would be very long lived. Maybe a cat or two would be better. There are raptors here and I watched a hawk chase a mouse on foot between the raised beds. Yes he did get it.I have heard to use a wire mesh on the bottom of your raised bed to keep mice and moles from eating your plants. Never tried it myself, always forget the wire when building a box.