I a building a CRM and what things I have in my CRM.
I have four modules in my CRM (leads, contacts, deals, vendors).
Multiple users with different roles. Roles are of dynamic type. Basically I have to build hirarchy of user roles .Users at high roles can see all the data of the role users below his role.
Each user has permissions to read write update and delete data of all the four modules. If you still have any doubt please visit Zoho CRM to check how their user control works. I need to build the same.
I am using MySQL as my database.