title: Mongoose: Schema vs Model?
body: <p>When looking at tutorials there is often a delineation between a schema and a model, particularly when dealing with mongoose/mongodb. 
  This makes porting over to postgresql somewhat confusing, as 'models' don't seem to exist under that system. What is the difference the two approaches?</p>
  
  <p>For example, what would be a postgres/sql ORM equivalent of this line? </p>
  
  <p>(mongoose and express.js):</p>
  
  <pre><code>var userSchema = schema.define('local', {
      username:       String,
      password:       String,
  });
  
  module.exports = mongoose.model('User', userSchema);
  </code></pre>