Skip to content

Instantly share code, notes, and snippets.

@mrm8488
Last active December 23, 2015 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrm8488/8ee72952f199c4888e25 to your computer and use it in GitHub Desktop.
Save mrm8488/8ee72952f199c4888e25 to your computer and use it in GitHub Desktop.
var mongoose = require('mongoose');
var schema = new mongoose.Schema({
name: {
type: String,
required: true,
index: {unique: true}
},
banned: {
type:Boolean,
default: false
}
});
var User = mongoose.model('User', schema);
module.exports = User;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment