add relations from model