During the signup process for my app, users will be asked if they have an invitation code. This is a way to recognize "VIP" users and instantly give them access, rather than sticking them on a waiting list.
I have everything (mostly) figured out, but am clueless as to how to create sets of unique codes, and what the best way to store them is. What is a generally accepted practice for something like this, and how should I store the values in SQL (as a string, or as a binary value, or what?)
Thanks!
Edit 1
- Any random set of numbers/letters is fine. There doesn't need to be any particular format.
- Each VIP user will have their own code
- There will (probably/hopefully) be a few thousand codes handed out.