Refactored mong.js; Implemented majorList for ProfilCard;
This commit is contained in:
+4
-5
@@ -200,20 +200,19 @@ const dbs = {
|
||||
model.Tags._list = [ "" ];
|
||||
|
||||
var userSchema = common.mongoose.Schema({
|
||||
//_id: { type: String },
|
||||
_id: { type: String },
|
||||
name: { type: String, required: true,
|
||||
_comment: "" },
|
||||
pwd: { type: String,
|
||||
_comment: "" },
|
||||
//hash: { type: String },
|
||||
//salt: { type: String },
|
||||
//type: { type: String },
|
||||
hash: { type: String },
|
||||
salt: { type: String },
|
||||
type: { type: String },
|
||||
roles: { type: [String], required: true,
|
||||
_comment: "" },
|
||||
tags: { type: [String],
|
||||
_comment: "" },
|
||||
//deactivated: { type: Boolean },
|
||||
//participating: { type: [String] },
|
||||
//host: { type: Boolean },
|
||||
bookmarks: { type: [String],
|
||||
_comment: "" },
|
||||
|
||||
Reference in New Issue
Block a user