code: func InitModels() {
  	// TODO: Use model tags to ensure indices/constraints.
  	index := mgo.Index{
  		Key:    []string{"globalid"},
  		Unique: true,
  	}
  
  	db.EnsureIndex(mongoCollectionName, index)
  
  	// Add indexes to search organizations based on user access ...
  	index = mgo.Index{
  		Key:        []string{"owners"},
  		Background: true,
  	}
  	db.EnsureIndex(mongoCollectionName, index)
  
  	index = mgo.Index{
  		Key:        []string{"members"},
  		Background: true,
  	}
  	db.EnsureIndex(mongoCollectionName, index)
  
  	index = mgo.Index{
  		Key:        []string{"orgowners"},
  		Background: true,
  	}
  	db.EnsureIndex(mongoCollectionName, index)
  
  	index = mgo.Index{
  		Key:        []string{"orgmembers"},
  		Background: true,
  	}
  	db.EnsureIndex(mongoCollectionName, index)
  
  	// Index the logo collection
  	index = mgo.Index{
  		Key:    []string{"globalid"},
  		Unique: true,
  	}
  
  	db.EnsureIndex(logoCollectionName, index)
  
  	index = mgo.Index{
  		Key:    []string{"globalid", "username"},
  		Unique: true,
  	}
  
  	db.EnsureIndex(last2FACollectionName, index)
  
  	// remove last2fa entries after 31 days
  	automatic2FAExpiration := mgo.Index{
  		Key:         []string{"last2fa"},
  		ExpireAfter: time.Second * 3600 * 24 * 31,
  		Background:  true,
  	}
  	db.EnsureIndex(last2FACollectionName, automatic2FAExpiration)
  
  	// Index the info texts
  	index = mgo.Index{
  		Key:    []string{"globalid"},
  		Unique: true,
  	}
  
  	db.EnsureIndex(descriptionCollectionName, index)
  }
docs: //InitModels initialize models in mongo, if required.