best practice create relations from model