Add model and migration rules for TreeFavorite

I think you'll get some flake8 errors for too many lines here.