arnaucube
arnaucube/commonroutesServerPublic Self-hosted repository
commonroutesServer/models/commentModel.js
models/commentModel.jsRaw
 1var mongoose = require('mongoose'),
 2    Schema   = mongoose.Schema;
 3
 4
 5var commentSchema = new Schema({
 6    travelId: { type: String },
 7    commentUserId: { type: String },
 8    commentUsername: { type: String },
 9    comment: { type: String },
10    commentAvatar: { type: String }
11
12});
13module.exports = mongoose.model('commentModel', commentSchema);