Microgrid battery system structure