I need to build a web application which requires multiple login. Basically it's a hospital information system and there are 3 kinds of users: admin, doctor, and superuser. Each type of user has their own permission, for example the admin can modify a medical record of a patient, but a doctor can't. So in the database they have their own table. This is where I get lost.
I've been reading about user and roles but still don't understand how it works. It seems to me that all these tutorials/article regarding this thing requires the users only have one table and I need to create mine with 3 tables (for the 3 types of users). I read somewhere that it is better to install a package for this, so I chose bican and read the documentation but still have no idea how I get started. So should each type of user have their own model or not?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire