mirror of
https://github.com/arnaucube/commonroutesServer.git
synced 2026-02-28 05:26:42 +01:00
delete travel and join travel implemented
This commit is contained in:
13
models/joinModel.js
Normal file
13
models/joinModel.js
Normal 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);
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user