This is a tough subject to generalize upon because of peoples preferred tastes etc, however let me just say that whatever you store, make sure you and your family is eating it, otherwise your digestive system might rebel.
Medium Term is in 3-5 years. Remember:-Low moisture, no light, Low Temperature, low oxygen.
Long term 15-25 years. No Oxygen, No Light, Low Temperature, Low Moisture.
In planning we divided upi into TWO Groups:- Bulk & Energy.
The main 5 Bulk Foods are: Corn, Wheat, Rice, Potato, Pasta. If budget does not allow all, then major in two minor in three.
The main Energy foods are: Beans 4-5 types, Legumes 3 types, Super grains 3-4 types Quinoa, Teff, Amaranth, Flax. Meats 3 types, Fish 2-3 types. Egg powder, Spices 12-15 of the basics.