added relationships functionalities to bypass the unique validation from the models.