ENSCORESW-1080: added missing foreign keys