I have 2 types of users in my app and I need to generate a unique username ( code ) for them which includes letters and numbers. and these are not random at all.
is there any tool that I can use or not?
if there is, can it make the code by other data provided by the users automatically?
Every thing comes with a UUID, and it’s unique to your app. No matter what. You don’t have to worry about adding your own, and you don’t have to worry about generating one that already exists, bubble does that for you.
Current user’s unique ID Current thing’s unique ID
The other way would be generating a nano ID string, and then relaying that back to your DB to see if it already exists, then assign to the thing. It’s just more of a process that may be a little extra.
Another note, like @aniv had said, you can use the SLUG property, which can only be a unique field, if one already exists, it’ll append “-1” to it.