File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ async function setupMongo() {
1313 await db . collection ( 'documents' ) . createIndex ( { relatesTo : 1 } ) ;
1414 await db . collection ( 'documenttypes' ) . createIndex ( { id : 1 } , { unique : true } ) ;
1515 await db . collection ( 'documenttypes' ) . createIndex ( { createdAt : 1 } ) ;
16+ await db . collection ( 'domains' ) . createIndex ( { id : 1 } , { unique : true } ) ;
17+ await db . collection ( 'domains' ) . createIndex ( { createdAt : 1 } ) ;
18+ await db . collection ( 'domains' ) . createIndex ( { 'structure.structureId' : 1 } ) ;
19+ await db . collection ( 'domains' ) . createIndex ( { 'structure.id' : 1 } ) ;
20+ await db . collection ( 'domains' ) . createIndex ( { domainName : 'text' } ) ;
1621 await db . collection ( 'emails' ) . createIndex ( { id : 1 } , { unique : true } ) ;
1722 await db . collection ( 'emails' ) . createIndex ( { createdAt : 1 } ) ;
1823 await db . collection ( 'emails' ) . createIndex ( { resourceId : 1 } ) ;
You can’t perform that action at this time.
0 commit comments