Add missing foreign keys
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=514335) </details> <!--IssueSummary end--> The following columns are missing foreign keys, which results in exported projects to reference user IDs that no longer exist in the source instance. - approvals: user_id - events: author_id - issues: last_edited_by_id - notes: updated_by_id, resolved_by_id #### Proposal - Add the missing foreign keys #### Question 1. What it intentional not to have such foreign keys? 2. Should we create a data migration to remove invalid user references before or after adding the foreign keys?
issue