I am building a two sided marketplace.
I have “jobs” attached to particular user and then another person gets paid based on completed work on the task.
However I am running into an issue when the user(who is doing the hiring) deletes their account because it deletes the job with it. And then then my payouts area(which I manually select which payments to make) deletes the job and therefore the payout to that member.
What are some solutions here. Obviously, if a user needs to delete their account once the job is finished that is okay but I need to somehow still save the payment amount we owe them and a few other non user specific parameters about the job such as what type of job it was.
How would you solve this?