public static function initialize(Config $config)
 {
     $config->addEventAfter(Event::CONSTRUCT, function ($model) {
         $class = get_class($model);
         $model->uniqueKey = $model->uniqueKey ?: $class::newRandomKeyUnique();
     });
 }