add relation for models