I am in the process of creating a Users table and would like each user to have a random User ID that will the the primary element and in an auto-increment/generated type of situation.
The format will be something like this: 246b6fe6-d1f2-4961-ae07-08f3057e0a13 and I would need each newly created user to be auto-assigned an internal "Person ID" under this format.
I don't think MySQL is able to handle this type of Unique ID (but I might be wrong).
Should I have a script generate a random string until one is found that isn't assigned then use it to create the entry in the table or is there an easier way that I'm just not yet aware of?
Thanks for your help!