I’m designing a database for our CRM system and need some help with the CRM User table.
Types of users:
- Admin
- Sales Reps from Branch 2
- Sales Reps from Branch 3
- Client login
Now for this scenario would it make sense to have all users in a single table and have a table attribute called “type” to identify the type of user? OR should I have a seperate table for each type of user? Also, there will be some information sharing between the Sales reps.
Typically, I usually go with one
Usertable with aTypeassociated with it. If you have additional Sales Rep attributes you want to store, create aSalesReptable with a foreign key back to theUsertable. Then, create a view that joinsUserandSalesRep, so it looks, logically, like there’s just ausvSalesReptable that has all of the attributes you need for Sales Reps.But, this depends a lot on data volume and transaction load, so additional information you can supply there is useful.