var mongoose = require('mongoose'); var Schema = mongoose.Schema; var userSchema = new Schema({ 'pass' : String, 'key' : String, }); module.exports = mongoose.model('user', userSchema);