summaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rwxr-xr-xmodels/Event.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/models/Event.js b/models/Event.js
index 1de6088..d68621a 100755
--- a/models/Event.js
+++ b/models/Event.js
@@ -15,6 +15,17 @@ const Attendees = new mongoose.Schema({
}
})
+const Followers = new mongoose.Schema({
+ followId: {
+ type: String,
+ trim: true
+ },
+ account: {
+ type: String,
+ trim: true
+ }
+}, {_id: false})
+
const ReplySchema = new mongoose.Schema({
id: {
type: String,
@@ -171,7 +182,8 @@ const EventSchema = new mongoose.Schema({
privateKey: {
type: String,
trim: true
- }
+ },
+ followers: [Followers],
});
module.exports = mongoose.model('Event', EventSchema);