mirror of
https://github.com/arnaucube/thoughts.git
synced 2026-02-06 19:26:47 +01:00
get token for user, post users, get all users, post thought, get all thoughts. runs ok
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user