Small additions for foreign key as identity within metadata mapping