mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-03 03:01:52 +02:00
New Features
- added notifications - added toggle switches - added delete feature - added email verification
This commit is contained in:
parent
e61ef151f6
commit
1b20a11bba
91 changed files with 6859 additions and 2756 deletions
|
@ -8,7 +8,15 @@ var EventSchema = new Schema({
|
|||
description : String,
|
||||
creator : {
|
||||
name : String,
|
||||
email : String
|
||||
email : String,
|
||||
isVerified : {
|
||||
type : Boolean,
|
||||
default : false
|
||||
},
|
||||
allowNotifications : {
|
||||
type : Boolean,
|
||||
default : true
|
||||
}
|
||||
},
|
||||
created : {
|
||||
type : Date,
|
||||
|
@ -17,18 +25,38 @@ var EventSchema = new Schema({
|
|||
updated : Date,
|
||||
title : String,
|
||||
dates : [Date],
|
||||
emails : [String],
|
||||
emails : [{
|
||||
email : String
|
||||
}],
|
||||
comments : [{
|
||||
id : Schema.Types.ObjectId,
|
||||
author : {
|
||||
name : String
|
||||
},
|
||||
content : String,
|
||||
created : {
|
||||
type: Date,
|
||||
default : Date.now
|
||||
}
|
||||
}],
|
||||
location: String,
|
||||
participants : [{
|
||||
id : Schema.Types.ObjectId,
|
||||
name : String,
|
||||
dates : [Boolean]
|
||||
}],
|
||||
comments : [{
|
||||
id : Schema.Types.ObjectId,
|
||||
author : String,
|
||||
comment : String,
|
||||
}]
|
||||
isClosed : {
|
||||
type : Boolean,
|
||||
default : false
|
||||
},
|
||||
isDeleted : {
|
||||
type : Boolean,
|
||||
default : false
|
||||
},
|
||||
__private : {
|
||||
verificationCode : String,
|
||||
deleteCode : String,
|
||||
}
|
||||
});
|
||||
|
||||
var model = mongoose.model('Event', EventSchema);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue