update basejump, zipline and nonprofit models
This commit is contained in:
22
models/Basejump.js
Normal file
22
models/Basejump.js
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
var mongoose = require('mongoose');
|
||||||
|
var secrets = require('../config/secrets');
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {exports.Schema}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
var basejumpSchema = new mongoose.Schema({
|
||||||
|
name: {
|
||||||
|
type: String,
|
||||||
|
unique: true
|
||||||
|
},
|
||||||
|
picture: String,
|
||||||
|
video: String,
|
||||||
|
gitHubLink: String,
|
||||||
|
demoLink: String,
|
||||||
|
details: Array
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = mongoose.model('Basejump', basejumpSchema);
|
12
models/BasejumpCompletion.js
Normal file
12
models/BasejumpCompletion.js
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
var mongoose = require('mongoose');
|
||||||
|
var secrets = require('../config/secrets');
|
||||||
|
|
||||||
|
var basejumpCompletionSchema = new mongoose.Schema({
|
||||||
|
dateCompleted: Number,
|
||||||
|
completedWith: ObjectId,
|
||||||
|
basejumpHash: ObjectId,
|
||||||
|
githubUrl: String,
|
||||||
|
demoUrl: String
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = mongoose.model('BasejumpCompletion', basejumpCompletionSchema);
|
31
models/Nonprofit.js
Normal file
31
models/Nonprofit.js
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
var mongoose = require('mongoose');
|
||||||
|
var secrets = require('../config/secrets');
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {exports.Schema}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
var nonprofitSchema = new mongoose.Schema({
|
||||||
|
name: String,
|
||||||
|
registeredNonprofit: true,
|
||||||
|
requestedDeliverables: Array,
|
||||||
|
existingUserbase: true,
|
||||||
|
acceptJavascript: true,
|
||||||
|
agreeToTerms: true,
|
||||||
|
whatDoesNonprofitDo: String,
|
||||||
|
websiteLink: String,
|
||||||
|
stakeholderName: String,
|
||||||
|
stakeholderEmail: String,
|
||||||
|
endUser: String,
|
||||||
|
approvedDeliverables: Array,
|
||||||
|
projectDescription: String,
|
||||||
|
logoUrl: String,
|
||||||
|
imageUrl: String,
|
||||||
|
interestedCampers: Array,
|
||||||
|
confirmedCampers: Array,
|
||||||
|
estimatedHours: String
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = mongoose.model('Nonprofit', nonprofitSchema);
|
@ -14,8 +14,7 @@ var ziplineSchema = new mongoose.Schema({
|
|||||||
},
|
},
|
||||||
picture: String,
|
picture: String,
|
||||||
video: String,
|
video: String,
|
||||||
gitHubLink: String,
|
codepenLink: String,
|
||||||
demoLink: String,
|
|
||||||
details: Array
|
details: Array
|
||||||
});
|
});
|
||||||
|
|
||||||
|
12
models/ZiplineCompletion.js
Normal file
12
models/ZiplineCompletion.js
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
var mongoose = require('mongoose');
|
||||||
|
var secrets = require('../config/secrets');
|
||||||
|
|
||||||
|
var ziplineCompletionSchema = new mongoose.Schema({
|
||||||
|
dateCompleted: Number,
|
||||||
|
completedWith: ObjectId,
|
||||||
|
basejumpHash: ObjectId,
|
||||||
|
githubUrl: String,
|
||||||
|
demoUrl: String
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = mongoose.model('ziplineCompletion', ziplineCompletionSchema);
|
Reference in New Issue
Block a user