Design Scenario
I am currently developing a mentorship application where mebers are mentor, mentee or both who work on some projects and possess unique member id. Most of the projects contain only one mentor and one mentee where the mentor helps the mentee during the project life cycle.
Now in my project table, I have kept a column named
proj_opener who may be mentor or mentee. As every project may have more than one mentors and mentees, I was thinking how should I keep the provision for storing mentor and mentee ids. I found the following options.
Options to Choose From
1. Keep two columns named
proj_mentors,
proj_mentees and store the mentor/mentee ids as comma-separated values (like "mnte-0001, mnte-0003, mnte-0005" etc. for mentees column and "mntr-0007, mntr-0009 for metnors column) .
2. I keep two foreign key fields in project tables and create two separate tables and store the values in the later tables that will contain one or more records.
3. Any other option that you may suggest here.
Comment
Second option seems reasonable but I am already using a member table where all the members info are stored and I am confused whether creating two new tables will unnecessarily duplicate data.
I want to the theory behind your sugesstions and practical considerations. Any help will be apprecaited.
