mirror of
https://github.com/sstent/expressmongotest.git
synced 2026-01-26 00:52:11 +00:00
added private public view to profile -- todo : add same for article view
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
var mongoose = require('mongoose');
|
||||
|
||||
var UserSchema = new mongoose.Schema({
|
||||
username: {type: String, unique: true},
|
||||
username: {type: String, unique: true, required: true},
|
||||
name: String,
|
||||
password: String,
|
||||
password: String
|
||||
});
|
||||
|
||||
UserSchema.methods.recentArticles = function(callback) {
|
||||
|
||||
Reference in New Issue
Block a user