File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ const Schema = mongoose.Schema;
5
5
const schema = new Schema (
6
6
{
7
7
"email" : String ,
8
- "timestamp" : Number ,
9
- "event" : String ,
8
+ "timestamp" : { type : Number , index : true } ,
9
+ "event" : { type : String , index : true } ,
10
10
"smtp-id" : String ,
11
11
"sg_event_id" : { type : String , unique : true } ,
12
12
"sg_message_id" : String ,
@@ -16,7 +16,14 @@ const schema = new Schema(
16
16
"category" : String ,
17
17
"site_name" : String ,
18
18
"ip" : String ,
19
- "info" : new Schema ( { } , { strict : false } )
19
+ "info" : new Schema ( { } , { strict : false } ) ,
20
+ "member" : new Schema ( {
21
+ "id" : { type : Number , default : 0 , index : true } ,
22
+ "email_type" : String ,
23
+ "contacted" : { type : Number , default : 0 } ,
24
+ "resolved" : { type : Number , default : 0 , index : true } ,
25
+ "resolved_timestamp" : Number
26
+ } )
20
27
} ,
21
28
{ collection : 'events' } ,
22
29
) ;
You can’t perform that action at this time.
0 commit comments