get token for user, post users, get all users, post thought, get all thoughts. runs ok

This commit is contained in:
nau
2016-07-16 18:53:37 +02:00
parent 15f01dc4a9
commit 64882fc513
678 changed files with 94094 additions and 22 deletions

View File

@@ -15,8 +15,10 @@ var mongoose = require('mongoose'),
var userSchema = new Schema({
username: { type: String },
password: { type: String },
description: { type: String },
icon: { type: String },
mail: { type: String }
mail: { type: String },
admin: { type: Boolean }
})
module.exports = mongoose.model('userModel', userSchema);