mirror of
https://github.com/sstent/expressmongotest.git
synced 2026-01-26 09:02:33 +00:00
ook
This commit is contained in:
@@ -3,7 +3,8 @@ var mongoose = require('mongoose');
|
||||
var UserSchema = new mongoose.Schema({
|
||||
username: {type: String, unique: true, required: true},
|
||||
name: String,
|
||||
password: String
|
||||
password: String,
|
||||
is_admin: {type: Boolean, 'default': false }
|
||||
});
|
||||
|
||||
UserSchema.methods.recentArticles = function(callback) {
|
||||
|
||||
Reference in New Issue
Block a user