I have a table where email is a unique key, the point is... when the user get deleted in the manage form, I do an update, inserting "1" in a column called "deleted", doing this I keep the data and the history of that user... But if I have to add a new user with the same email, Bang MySQL catches me
So.. my question is, the best practice is?
- Do a remove in table when user get deleted, losing the history of that user
- Remove the unique key in the column email, and keep the validate only in JS for prevent duplicates emails
- Another one...
Thanks for your time