Hello. Is it possible to store user data with the role of "admin", requiring a password during authentication and users who do not require registration and authentication. For these users, it is necessary to store temporary data that they paid for an hour of testing on the site. The user table structure follows:
- id (not null)
- name (not null)
- pass (null)
- role (default "guest")
- status (integer payment statuses, for example 0,1,2, etc.)
The fact is, to solve the specified task, I make the pass field not mandatory in the table, but I will check it for sure when authenticating the administrator. Do I go right? And what will you advise me?
Thank.