update relationship between models follow requirement