Here’s my database design:
USER SKILLS
id idUser
email 1-------* description
name selfAssesedLevel
lastname yearsExperience
?skills? reference
How could I handle this? I’m kind of lost on what I have to write down in ?skills? field of the USER table.
My purpose is to have a user be able to add n number of skills to his profile.
Thank you.
You don’t need the skills field in the USER table, as you already have a link between user and skills: the SKILLS.idUser field.
So when you want to add a skill for a user with id 666, you should just add a new entry in the SKILLS table, having idUser = 666
Extra:
I would recommend to add an extra field to the SKILLS table: ‘id’ or ‘skillsid’, which can be the primary key for this table.