title: How to set up rating table SQL
body: <p>I'm trying to figure out how to set up a database table that will handle rating of specific users. Every user is one "blog", I would like users to be able to vote other users.</p>
  
  <pre><code>Table users
  id(primary) username password email
  Table rating
  value user_id(foreign key)
  </code></pre>
  
  <p>The problem is that I can't find out, how to make another user able to rate the other user, and store it in the rating table. I would like it to look something like:</p>
  
  <p>user id 2 voted user id 3 with value 5.</p>