multiple users Database design
<p>I'm creating a db schema that involves users that can have multiple users. </p>

<p>I want to register different companies to use the web services. </p>

<p>For example:</p>

<ul>
<li>user A or B (etc) can signup and create a company account</li>
<li>user A can  create multiple accounts of other users with their types, similarly user B</li>
</ul>

<p>If  user A or B create different accounts, how would I know this particular user is belong to User A or B company ? I think user table have many to many relationship with itself (like basic friendship design). </p>

<p>Please suggest the best design .</p>

<p>Ex.</p>

<p><code>User 3,4 belongs to User A</code></p>

<p><code>User 5,6 belongs to User B</code></p>