[KFAttribute] Generate relationship attributes