delete travel and join travel implemented

This commit is contained in:
nau
2016-09-05 17:45:25 +02:00
parent b93da44e86
commit 8e98c356a4
5 changed files with 61 additions and 5 deletions

13
models/joinModel.js Normal file
View File

@@ -0,0 +1,13 @@
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var joinSchema = new Schema({
travelId: { type: String },
joinedUserId: { type: String },
joinedUsername: { type: String },
acceptedUserId: { type: String },
comment: { type: String }
});
module.exports = mongoose.model('joinModel', joinSchema);

View File

@@ -17,9 +17,7 @@ var travelSchema = new Schema({
phone: { type: Number },
telegram: { type: String },
collectivized: { type: Boolean },
modality: { type: String }, //if is an offering travel or asking for travel
joinedusers: { type: String },
acceptedusers: { type: String }
modality: { type: String } //if is an offering travel or asking for travel
})
module.exports = mongoose.model('travelModel', travelSchema);