dragonwell
Programmer
We have two distinct user-types, say Employers and Workers. Being both types will not be supported. Both log in using a username/password account. I am sure I want a "Log-In" table that contains the usernames and passwords, as the logic for creating the account and loggin in is going to be the same in both types.
I also know I will need separate Employer and Worker tables, both with a foreign key on the Log-In table.
I am wondering if this sounds correct. Should the Log-In know if the account is for a Employer or Worker? If so, how?
I figure I could:
1. Use a user-tpyes table, and have a FK column in the Log in table.
2. Have a bit field in the log-in table - 1 employer, 0 worker.
3. Have IsEmployer and IsWorker bit fields in the log-in table.
Option 3 is what I plan to do. Any opinions on this?
Thanks,
-d
I also know I will need separate Employer and Worker tables, both with a foreign key on the Log-In table.
I am wondering if this sounds correct. Should the Log-In know if the account is for a Employer or Worker? If so, how?
I figure I could:
1. Use a user-tpyes table, and have a FK column in the Log in table.
2. Have a bit field in the log-in table - 1 employer, 0 worker.
3. Have IsEmployer and IsWorker bit fields in the log-in table.
Option 3 is what I plan to do. Any opinions on this?
Thanks,
-d