mirror of
https://github.com/arnaucube/commonroutesServer.git
synced 2026-02-28 05:26:42 +01:00
travel comments system added
This commit is contained in:
12
models/commentModel.js
Normal file
12
models/commentModel.js
Normal file
@@ -0,0 +1,12 @@
|
||||
var mongoose = require('mongoose'),
|
||||
Schema = mongoose.Schema;
|
||||
|
||||
|
||||
var commentSchema = new Schema({
|
||||
travelId: { type: String },
|
||||
commentUserId: { type: String },
|
||||
commentUsername: { type: String },
|
||||
comment: { type: String }
|
||||
|
||||
});
|
||||
module.exports = mongoose.model('commentModel', commentSchema);
|
||||
@@ -6,8 +6,7 @@ var joinSchema = new Schema({
|
||||
travelId: { type: String },
|
||||
joinedUserId: { type: String },
|
||||
joinedUsername: { type: String },
|
||||
acceptedUserId: { type: String },
|
||||
comment: { type: String }
|
||||
acceptedUserId: { type: String }
|
||||
|
||||
});
|
||||
module.exports = mongoose.model('joinModel', joinSchema);
|
||||
|
||||
Reference in New Issue
Block a user