So I was creating an application that required user log in, with each user having some privilege. Now this model closely resembled that of mysql's database where there can be many user, with each user having their own privileges.
So currently, for each user of my application, i am running a create user query and then grant them required permission and its working perfectly fine as of now
My Question
How good is my current approach?
I know, I can create my own user table and privilege table and then write queries accordingly, but is there any problem with my current approach,(after all thats what mysql does behind the scene, right?)