Compare commits
No commits in common. "c7a835ad1c81924ba9e575ed370f5c31ec26fdf9" and "24642ca1a834065294da623913228009a3857eec" have entirely different histories.
c7a835ad1c
...
24642ca1a8
@ -4,11 +4,17 @@ const mongoose = require('mongoose');
|
||||
//ObjectId = Schema.ObjectId;
|
||||
|
||||
const MessageSchema = mongoose.Schema({
|
||||
//_id: ObjectId,
|
||||
/*id: {
|
||||
type: String,
|
||||
getter: function(val) { return this._id.toString(); },
|
||||
unique: true
|
||||
},*/
|
||||
//id: {type: String, required: true},
|
||||
subject: { type: String, required: true },
|
||||
message: { type: String, required: true },
|
||||
user: { type: String, required: true },
|
||||
tag: [{type: String, index: true }],
|
||||
//createtime: { type: Date, default: Date.now },
|
||||
tag: {type: String },
|
||||
});
|
||||
|
||||
module.exports = mongoose.model('Message', MessageSchema);
|
||||
|
Loading…
x
Reference in New Issue
Block a user