Currently when an user rejects a invitation sent by an admin, the invitation is deleted from the database. Instead we can create a enum called Status with values Accepted , Rejected and Pending. Now instead of deleting the invite we can just set the status to Rejected.
This would be a breaking change.
Currently when an user rejects a invitation sent by an admin, the invitation is deleted from the database. Instead we can create a enum called Status with values
Accepted,RejectedandPending. Now instead of deleting the invite we can just set the status toRejected.This would be a breaking change.