I have a faculty
and student
table to store each information, respectively. I made a contact
table to store the contacts of either faculty or student. I would like to use the contact
table as a generic one, means it can be used by either faculty
or student
.
My table diagram is something like this.
I compressed faculty and student into a USER table
and have an account type
in that table to know whether it is a faculty
or student
type of user. Then the USER
table will have a one is to many relationship with the contact table.
Student
Faculty
Contacts
Student & Faculty = User table
User table -----<- Contact table