This should not go here, the foreign key goes in project_join_request. With this we can only have one request per each group, but we want to have up to five. 

 If this had to be added to fix some bug, then please review the cause of the bug again, because this is not the solution :(