'use strict';

const Schema = require('mongoose').Schema;
const AutoIncrement = require('mongoose-sequence');


const Event = new Schema({
    owner: String,
    title: String,
    start: Date,
    end: Date,
    description: String,
    reminders: Array,
    channels: Array,
    mentions: Object,
    recurring: Number
});
Event.plugin(AutoIncrement, { inc_field: 'id' }); // eslint-disable-line camelcase

module.exports = Event;

@@ -242,21 +242,24 @@
 inders: 
-Array
+%5BNumber%5D
 ,%0A    ch
@@ -270,13 +270,16 @@
 ls: 
-Array
+%5BString%5D
 ,%0A  
@@ -294,14 +294,64 @@
 ns: 
-Object
+%7B%0A        roles: %5BString%5D,%0A        users: %5BString%5D%0A    %7D
 ,%0A  

Update Event mongoose model to be more restrictive