summaryrefslogtreecommitdiff
path: root/models/EventGroup.js
diff options
context:
space:
mode:
authorRaphael <raphaelkabo@gmail.com>2020-02-06 11:13:10 +0000
committerGitHub <noreply@github.com>2020-02-06 11:13:10 +0000
commitb0de8dc1d798965b8d6789b66ede19084ba84f35 (patch)
tree8b4db2859177c86bcaf569f703346663ffa3bae8 /models/EventGroup.js
parent43a6bf362105e96eeb7ed8641096cd1f5064d3f2 (diff)
parenta594946b13c15fda6d49f0651ffdf2332a3793cd (diff)
Merge branch 'master' into newmaster
Diffstat (limited to 'models/EventGroup.js')
-rwxr-xr-xmodels/EventGroup.js86
1 files changed, 43 insertions, 43 deletions
diff --git a/models/EventGroup.js b/models/EventGroup.js
index 336074c..6d2893b 100755
--- a/models/EventGroup.js
+++ b/models/EventGroup.js
@@ -1,49 +1,49 @@
const mongoose = require('mongoose');
const EventGroupSchema = new mongoose.Schema({
- id: {
- type: String,
- required: true,
- unique: true
- },
- name: {
- type: String,
- trim: true,
- required: true
- },
- description: {
- type: String,
- trim: true,
- required: true
- },
- image: {
- type: String,
- trim: true
- },
- url: {
- type: String,
- trim: true
- },
- creatorEmail: {
- type: String,
- trim: true
- },
- hostName: {
- type: String,
- trim: true
- },
- editToken: {
- type: String,
- trim: true,
- minlength: 32,
- maxlength: 32
- },
- firstLoad: {
- type: Boolean,
- trim: true,
- default: true
- },
- events: [{ type: mongoose.Schema.Types.ObjectId, ref: 'Event' }]
+ id: {
+ type: String,
+ required: true,
+ unique: true
+ },
+ name: {
+ type: String,
+ trim: true,
+ required: true
+ },
+ description: {
+ type: String,
+ trim: true,
+ required: true
+ },
+ image: {
+ type: String,
+ trim: true
+ },
+ url: {
+ type: String,
+ trim: true
+ },
+ creatorEmail: {
+ type: String,
+ trim: true
+ },
+ hostName: {
+ type: String,
+ trim: true
+ },
+ editToken: {
+ type: String,
+ trim: true,
+ minlength: 32,
+ maxlength: 32
+ },
+ firstLoad: {
+ type: Boolean,
+ trim: true,
+ default: true
+ },
+ events: [{ type: mongoose.Schema.Types.ObjectId, ref: 'Event' }]
});
module.exports = mongoose.model('EventGroup', EventGroupSchema);