I create an application with pyqt5 which will be used by a few users. These user I want to give different permissions to use the application. I think I will create 3 permission level. (Admin), (supervisor), (user).
To save user data i create a SQLite 3 database where i save user data like username, (hashed)passwort etc. In this usertable I have a column (isAdmin) at the moment. This column is boolean and saves 0 or 1 to check if the user is admin or not. After starting the software you have to login and if you are an admin you get more rights. But while coding this my thought was that everybody could get access to this database by softwares like "SQLite Browser" or "SQLite Studio" and can chance all what he/she want. So this seems not to be the best was to do this what I want.
I need some ideas how do I can solve this problem. I have never did something like User Management system in the past, so I have absolutely no idea.
Me as admin have to be able to create new users, create new tables in database etc. But a normal user shouldnt has these rights. I need some food for thought. I am very grateful for any help.