add foreign key for tool-usermessages relationship