title: OAuth (Facebook, Twitter) and basic login - users table
body: <p>I want to let users login to my website using their Facebook, or Twitter account, but if they don't have one then to register a new account, and use the basic login of my site.</p>
  
  <p>But how should my <em>users</em> table looks like:</p>
  
  <p>My idea:</p>
  
  <ul>
  <li>id (primary, auto increment)</li>
  <li>username (in case of oauth login => ouath_provider+oauth_id, ex:fb_100001557958700)</li>
  <li>password (password choosed by user or randomly generated in case of oauth)</li>
  <li>name (name to display)</li>
  </ul>
  
  <p>What do you think?
  Or should I have 2 tables, 1 for basic login, and another 1 for oauth login? But then how users whill have unique ids?</p>
  
  <p>Thanks in advance for comments.</p>