genrate foreigntkey