Add constraint to make Relics unique by key fields