summaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rwxr-xr-xmodels/Event.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/models/Event.js b/models/Event.js
index 64cf398..60fd65f 100755
--- a/models/Event.js
+++ b/models/Event.js
@@ -15,12 +15,15 @@ const Attendees = new mongoose.Schema({
},
removalPassword: {
type: String,
- trim: true
+ trim: true,
+ unique: true,
},
id: {
type: String,
- trim: true
- }
+ trim: true,
+ unique: true,
+ },
+ created: Date,
})
const Followers = new mongoose.Schema({