title: Modeling using MongoDB
body: <p>I'm using c# and mongoDB I have more experience with system that uses databases as the back end, I'm trying to understand and change my mindset and start to stop thinking in terms of database modeling and try to think more in how to model in NoSql.</p>
  
  <p>I'm going to explain a small DB Schema and what I'd like to know how that translates to mongoDB.</p>
  
  <p>This is a typical case for a freelance website:(just a very small case just to get the idea)
  the site is going to contain four different type of users in the system like Sales representatives, Administrators, Users, Companies, etc, </p>
  
  <p>The Users are going to be able to post their profile with different types of media content like an Image, Website, Document, etc they can apply to jobs posted from a company, the users can have friends as well which are going to be users.</p>
  
  <pre><code>tables:
   -Users
         1to1 -Roles
         1to1 -Candidate       
                         1toM -MediaFile (for the profile)
                                         1to1 -MediaType (file, web, etc)
                         1toM - JobApplications - Mto1 Job (many to many relationship)
         1to1 -Company
                         1toM Jobs
         1toM - Friends (Users)
  </code></pre>