So sorry to hear this. Deer are jerks. There are techniques:
1. physical barriers — build a fence.
2. chemical barriers — deer repellents. Drawbacks include being necessary to routinely reapply. Some deer get used to the taste, necessitating picking a different brand / flavor of product.
3. advanced weapons — shoot them. They’re pretty good to eat.