Guest User

Untitled

a guest
Dec 18th, 2013
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * Module dependencies.
  3.  */
  4. var mongoose = require('mongoose'),
  5.     Schema = mongoose.Schema,
  6.     ObjectId = Schema.Types.ObjectId;
  7.  
  8. /*
  9.  * Schema definition.
  10.  */
  11. var AModelSchema = new Schema({
  12.     name  : {
  13.         type: String
  14.     }
  15. });
  16.  
  17. // Export it to make it usable to the Routes.
  18. module.exports = mongoose.model('AModel', AModelSchema);
Advertisement
Add Comment
Please, Sign In to add comment