title: Mongoose - Defining a model for a preexisting collection
body: <p>I have imported some CSV data to my database through mongoimport, which created my collection during the import.</p>
  
  <p>When defining my model in Node, what do I pass for the schema parameter? Viewing my db in compass shows a schema already created based off the imported data. </p>
  
  <p>I'm currently passing an empty schema which seems totally wrong.</p>
  
  <pre><code>var mongoose = require('mongoose');
  var Schema = mongoose.Schema;
  
  var Units = new Schema({
  });
  
  module.exports = mongoose.model('Units', Units, 'units');
  </code></pre>