mongoose create user code example
Example: mongoose user model example
var mongoose = require('mongoose');
var UserSchema = new mongoose.Schema({
username: String,
email: String,
bio: String,
image: String,
hash: String,
salt: String
}, {timestamps: true});
mongoose.model('User', UserSchema);