Codependency describes a pattern of relating where the codependent person organises their life around the other person
This most often shows up in romantic relationships, but can arise between friends or family members too - counsellor Natasha Wellfare explains more in this video
If you want help working through repeated or harmful relationship patterns, therapy can help - find yours here