Added and tested for compound foreign key scenarios
Added and tested for compound foreign key scenarios