Click here to Skip to main content
15,889,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Guys:
How Create Login-Table for five different modules...i mean to say i have five different modules(client,Admin,HR,PM,CEO),and i want a single login page with radiobuttons etc,and application check the respected login modules,,,so what i do in SQl table...
Any help :)
Posted

1 solution

I guess you are talking about Users with different Roles.

So, you can have a Role Master Table with...

RoleId - Primary Key
RoleName - Name of Role like "client, Admin, HR, PM, CEO"

Then one UserRole Table like...

UserId - ID of the User from User Table (Foreign Key)
RoleId - Role Id from Role Mater Table (Foreign Key)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900