Last active
December 23, 2015 11:06
-
-
Save mrm8488/8ee72952f199c4888e25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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