Add uniq constraint to remove duplicates when joining two models

When joining two models some duplicates appear. To fix it I added a uniq constraint to remove the duplicates of the join