refactoring primarykey to foreignkey
Merge remote-tracking branch 'origin/master'