Przykład modelu użytkownika Mongoose
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);
Confused Chimpanzee