Add relations to resources.
restore some fields