Delete user permissions in the background when a user is deleted
Created by: asdine
When a user is (hard/soft) deleted, we need to delete all repository permissions related to that user. Because the number of repositories can be very large, this action cannot be performed synchronously.
Instead, whenever a user is deleted, add a line to a dedicated job table and use a background job to cleanup the user permissions.