Create Collection

how to make this collection
tb_relationship

  1. Mika, John, Father
  2. Mika, Lylia, Mother
  3. Mika Lylia, Mother ( avoid duplicate )

from this
tb_name
id, name
1, John
2. Lylia
3. Mika
4. Bix

tb_relation
id , name
1, father
2. mother
3. brother
4. sister

I was trying using repeatable component but, data can entry duplicate.

thanks.