create a single entity with multiple user roles

i am creating a healthcare application where there are doctors and patients as user roles can i create a single entity for the user and connect different user roles..can you explain me through diagram
1 answers

You need to set the System.UserRoles association to assign roles to a user. Your user will be System.User or a generalization of it such as Administration.Account. The role will be in the UserRole module.


Screenshot 2024-04-25 at 12.22.15.png


I hope this helps.