Put relations into the models