0

I have model User in Postgres. Each user has Skills (Skill is also an existing model). There are 2 categories of skills: known and learning. What relations should I use to have possibility take both Known and Learning skills?

enter image description here

Kingsley
  • 14,398
  • 5
  • 31
  • 53
  • Can you please edit the question and add the SQL schema. – Kingsley Nov 15 '18 at 21:30
  • I'm quite new to SQL, so I don't know what schema you are talking about, sorry ( – Alex Pomazan Nov 15 '18 at 21:35
  • SOmething like this: https://imgur.com/PymOo8J – Alex Pomazan Nov 15 '18 at 21:41
  • You already have relations between both *known_skills* and *learning_skills* to *users* via the `known_skills.user_id` -> `users.id` and `learning_skills.user_id` -> `users.id`. What are you looking for? An example of SQL using these relations? Something else? – Kingsley Nov 15 '18 at 21:58
  • Ok, thank you for checking. I just wanted make sure that everything is good with relations. Another issue is to JOIN tables using seqeulize. – Alex Pomazan Nov 16 '18 at 19:03

0 Answers0