<?php

namespace App\Installer\Providers;

use App\Enumerations\CronTaskType;
use App\Models\CronTask;
use App\Models\Tenant;
use App\Models\User;

class BdpLvSachsenDataSeeder {
    public function execute() {
        $this->installTenants();
        $this->installUsers();
        $this->installCronTasks();
    }

    private function installTenants()
    {
        Tenant::create([
            'slug' => 'lv',
            'name' => 'Landesunmittelbare Mitglieder',
            'url' => 'beta.mareike.sachsen.pfadfinden.de',
            'account_name' => 'Bund der Pfadfinder*innen Landesverband Sachsen e.V.',
            'account_iban' => 'DE12345678901234567890',
            'account_bic' => 'GENODEF1S10',
            'email' => 'landesvorstand@sachsen.pfadfinden.de',
            'email_finance' => 'finanzamt@sachsen.pfadfinden.de',
            'city' => 'Limbach-Oberfrohne',
            'postcode' => '09212',
            'is_active_local_group' => true,
            'has_active_instance' => true,
        ]);

        Tenant::create([
            'slug' => 'wm',
            'name' => 'Wilde Möhre',
            'url' => 'wilde-moehre.mareike.local',
            'account_name' => 'Bund der Pfadfinder*innen Landesverband Sachsen e.V. - Stamm Wilde Möhre',
            'account_iban' => 'DE12345678901234567890',
            'account_bic' => 'GENODEF1S10',
            'email' => 'info@pfadfinden-halle.de',
            'email_finance' => 'info@pfadfinden-halle.de',
            'city' => 'Halle (Saale)',
            'postcode' => '06120',
            'download_exports' => true,
            'upload_exports' => true,
            'is_active_local_group' => true,
            'has_active_instance' => true,
        ]);

        Tenant::create([
            'slug' => 'anc',
            'name' => 'Ancalagon',
            'url' => 'ancalagon.mareike.sachsen.pfadfinden.de',
            'download_exports' => true,
            'upload_exports' => true,
            'is_active_local_group' => true,
            'has_active_instance' => true,
            'account_name' => 'Bund der Pfadfinder*innen Landesverband Sachsen e.V. - Stamm Wilde Möhre',
            'account_iban' => 'DE12345678901234567890',
            'account_bic' => 'GENODEF1S10',
            'email' => 'info@stamm-ancalagon.de',
            'email_finance' => 'info@stamm-ancalagon.de',
            'city' => 'Leipzig',
            'postcode' => '04425',
        ]);

        Tenant::create([
            'slug' => 'ban',
            'name' => 'Bankiva',
            'url' => 'bankiva.mareike.sachsen.pfadfinden.de',
            'download_exports' => true,
            'upload_exports' => true,
            'is_active_local_group' => true,
            'has_active_instance' => true,
            'account_name' => 'Bund der Pfadfinder*innen Landesverband Sachsen e.V. - Stamm Wilde Möhre',
            'account_iban' => 'DE12345678901234567890',
            'account_bic' => 'GENODEF1S10',
            'email' => 'bankiva@sachsen.pfadfinden.de',
            'email_finance' => 'bankiva@sachsen.pfadfinden.de',
            'city' => 'Leipzig',
            'postcode' => '04157',
        ]);

        Tenant::create([
            'slug' => 'ere',
            'name' => 'Erebor',
            'url' => 'erebor.mareike.sachsen.pfadfinden.de',
            'download_exports' => true,
            'upload_exports' => true,
            'is_active_local_group' => true,
            'has_active_instance' => true,
            'account_name' => 'Bund der Pfadfinder*innen Landesverband Sachsen e.V. - Stamm Wilde Möhre',
            'account_iban' => 'DE12345678901234567890',
            'account_bic' => 'GENODEF1S10',
            'email' => 'freiberg@sachsen.pfadfinden.de',
            'email_finance' => 'freiberg@sachsen.pfadfinden.de',
            'city' => 'Freiberg',
            'postcode' => '09599',
        ]);

        Tenant::create([
            'slug' => 'fen',
            'name' => 'Fennek',
            'url' => 'fennek.mareike.local',
            'download_exports' => true,
            'upload_exports' => true,
            'is_active_local_group' => true,
            'has_active_instance' => true,
            'account_name' => 'Bund der Pfadfinder*innen Landesverband Sachsen e.V. - Stamm Fennek',
            'account_iban' => 'DE12345678901234567890',
            'account_bic' => 'GENODEF1S10',
            'email' => 'chemnitz@sachsen.pfadfinden.de',
            'email_finance' => 'chemnitz@sachsen.pfadfinden.de',
            'city' => 'Chemnitz',
            'postcode' => '09125',
        ]);

        Tenant::create([
            'slug' => 'feu',
            'name' => 'Feuerland',
            'url' => 'feuerland.mareike.sachsen.pfadfinden.de',
            'download_exports' => true,
            'upload_exports' => true,
            'is_active_local_group' => true,
            'has_active_instance' => true,
            'account_name' => 'Bund der Pfadfinder*innen Landesverband Sachsen e.V. - Stamm Feuerland',
            'account_iban' => 'DE12345678901234567890',
            'account_bic' => 'GENODEF1S10',
            'email' => 'info@stamm-feuerland.de',
            'email_finance' => 'info@stamm-feuerland.de',
            'city' => 'Leipzig',
            'postcode' => '04318',
        ]);

        Tenant::create([
            'slug' => 'gr',
            'name' => 'Goldener Reiter',
            'url' => 'goldener-reiter.mareike.sachsen.pfadfinden.de',
            'download_exports' => true,
            'upload_exports' => true,
            'is_active_local_group' => true,
            'has_active_instance' => true,
            'account_name' => 'Bund der Pfadfinder*innen Landesverband Sachsen e.V. - Stamm Goldener Reiter',
            'account_iban' => 'DE12345678901234567890',
            'account_bic' => 'GENODEF1S10',
            'email' => 'stafue@goldenerreiter.org',
            'email_finance' => 'stafue@goldenerreiter.org',
            'city' => 'Dresden',
            'postcode' => '01099',
        ]);

        Tenant::create([
            'slug' => 'leo',
            'name' => 'LEO',
            'url' => 'leo.mareike.sachsen.pfadfinden.de',
            'download_exports' => true,
            'upload_exports' => true,
            'is_active_local_group' => true,
            'has_active_instance' => true,
            'account_name' => 'Bund der Pfadfinder*innen Landesverband Sachsen e.V. - Stamm Leo',
            'account_iban' => 'DE12345678901234567890',
            'account_bic' => 'GENODEF1S10',
            'email' => 'stafue@leipzig-pfadfinden.de',
            'email_finance' => 'stafue@leipzig-pfadfinden.de',
            'city' => 'Leipzig',
            'postcode' => '04229',
        ]);

        Tenant::create([
            'slug' => 'rf',
            'name' => 'Roter Fuchs',
            'url' => 'roter-fuchs.mareike.sachsen.pfadfinden.de',
            'download_exports' => true,
            'upload_exports' => true,
            'is_active_local_group' => true,
            'has_active_instance' => true,
            'account_name' => 'Bund der Pfadfinder*innen Landesverband Sachsen e.V. - Stamm Roter Fuchs',
            'account_iban' => 'DE12345678901234567890',
            'account_bic' => 'GENODEF1S10',
            'email' => 'info@pfadfinden-lommatzsch.de',
            'email_finance' => 'info@pfadfinden-lommatzsch.de',
            'city' => 'Lommatzsch',
            'postcode' => '01623',
        ]);

        Tenant::create([
            'slug' => 'sapi',
            'name' => 'Saalepiraten',
            'url' => 'saalepiraten.mareike.sachsen.pfadfinden.de',
            'download_exports' => true,
            'upload_exports' => true,
            'is_active_local_group' => true,
            'has_active_instance' => true,
            'account_name' => 'Bund der Pfadfinder*innen Landesverband Sachsen e.V. - Stamm Saalepiraten',
            'account_iban' => 'DE12345678901234567890',
            'account_bic' => 'GENODEF1S10',
            'email' => 'saalepiratenbernburg@gmail.com',
            'email_finance' => 'saalepiratenbernburg@gmail.com',
            'city' => 'Bernburg',
            'postcode' => '06408',
        ]);
    }

    private function installUsers() {
        $users = [
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'ada@irmielin.org',                       'local_group' => 'feu',  'firstname' => 'Ada',           'lastname' => 'Lindner',           'email' => 'ada@irmielin.org',                       'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'adrianhuebner1@gmx.de',                  'local_group' => 'lv',   'firstname' => 'Adrian',        'lastname' => 'Hübner',            'email' => 'adrianhuebner1@gmx.de',                  'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'aneta2622@seznam.cz',                    'local_group' => 'fen',  'firstname' => 'Josef',         'lastname' => 'Soukup',            'email' => 'aneta2622@seznam.cz',                    'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'antje.heilmann@gmx.de',                  'local_group' => 'sapi', 'firstname' => 'Antje',         'lastname' => 'Heilmann',          'email' => 'antje.heilmann@gmx.de',                  'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'arne.hartmann@leipzig-pfadfinden.de',    'local_group' => 'leo',  'firstname' => 'Arne',          'lastname' => 'Hartmann',          'email' => 'arne.hartmann@leipzig-pfadfinden.de',    'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_ADMINISTRATOR', 'user_role_local_group' => 'ROLE_GROUP_LEADER', 'username' => 'thomas@pfadfinden-halle.de',             'local_group' => 'wm',   'firstname' => 'Thomas',        'lastname' => 'Günther',           'email' => 'thomas@pfadfinden-halle.de',             'activation_token_expires_at' => null,                 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'corinna-veith@gmx.de',                   'local_group' => 'lv',   'firstname' => 'Corinna',       'lastname' => 'Lajewski',          'email' => 'corinna-veith@gmx.de',                   'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'eliseschenfeld@gmail.com',               'local_group' => 'leo',  'firstname' => 'Elise',         'lastname' => 'Schenfeld',         'email' => 'eliseschenfeld@gmail.com',               'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'emmi.pins@posteo.de',                    'local_group' => 'feu',  'firstname' => 'Emily',         'lastname' => 'Pins',              'email' => 'emmi.pins@posteo.de',                    'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'fangorn@goldenerreiter.org',             'local_group' => 'gr',   'firstname' => 'Karl',          'lastname' => 'Redemann',          'email' => 'fangorn@goldenerreiter.org',             'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'franziskabaer@posteo.de',                'local_group' => 'fen',  'firstname' => 'Franziska',     'lastname' => 'Baer',              'email' => 'franziskabaer@posteo.de',                'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'frederik.pitz@pfadfinden.de',            'local_group' => 'lv',   'firstname' => 'Frederik',      'lastname' => 'Pitz',              'email' => 'frederik.pitz@pfadfinden.de',            'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'fyn.thaerigen@gmail.com',                'local_group' => 'lv',   'firstname' => 'Fyn Valentin',  'lastname' => 'Thärigen',          'email' => 'fyn.thaerigen@gmail.com',                'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'jakob.rudolph@pfadfinden.de',            'local_group' => 'lv',   'firstname' => 'Jakob',         'lastname' => 'Rudolph',           'email' => 'jakob.rudolph@pfadfinden.de',            'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'jenny.abel@proton.me',                   'local_group' => 'fen',  'firstname' => 'Jenny',         'lastname' => 'Abel',              'email' => 'jenny.abel@proton.me',                   'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'Jerry@pfadfinden-halle.de',              'local_group' => 'wm',   'firstname' => 'Jérémie',       'lastname' => 'Duckwitz',          'email' => 'Jerry@pfadfinden-halle.de',              'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'jonathan.helm@pfadfinden.de',            'local_group' => 'lv',   'firstname' => 'Jonathan',      'lastname' => 'Helm',              'email' => 'jonathan.helm@pfadfinden.de',            'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'jul-ka@gmx.net',                        'local_group' => 'sapi', 'firstname' => 'Juliane',       'lastname' => 'Kahl',              'email' => 'jul-ka@gmx.net',                         'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'julia.meier@pfadfinden.de',              'local_group' => 'lv',   'firstname' => 'Julia',         'lastname' => 'Meier',             'email' => 'julia.meier@pfadfinden.de',              'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'julika.scheibler@leipzig-pfadfinden.de','local_group' => 'leo',  'firstname' => 'Julika',        'lastname' => 'Scheibler',         'email' => 'julika.scheibler@leipzig-pfadfinden.de', 'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'karlmarx.95@gmail.com',                  'local_group' => 'sapi', 'firstname' => 'Karlmarx',      'lastname' => 'Thangamani',        'email' => 'karlmarx.95@gmail.com',                  'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'kilian@cyberfuchs.de',                   'local_group' => 'lv',   'firstname' => 'Kilian',        'lastname' => 'Fuchs',             'email' => 'kilian@cyberfuchs.de',                   'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'korni@pfadfinden-lommatzsch.de',         'local_group' => 'rf',   'firstname' => 'Konstantin',    'lastname' => 'Stephan',           'email' => 'korni@pfadfinden-lommatzsch.de',         'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'laiu@gmx.net',                          'local_group' => 'lv',   'firstname' => 'Roukaya',       'lastname' => 'Zakarias',          'email' => 'laiu@gmx.net',                           'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'lars.kristen@gmx.net',                   'local_group' => 'ban',  'firstname' => 'Lars',          'lastname' => 'Kristen',           'email' => 'lars.kristen@gmx.net',                   'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'laura.kopsch@pfadfinden.de',             'local_group' => 'lv',   'firstname' => 'Laura',         'lastname' => 'Kopsch',            'email' => 'laura.kopsch@pfadfinden.de',             'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'leopardgecko333@gmx.de',                 'local_group' => 'lv',   'firstname' => 'Konrad',        'lastname' => 'Birch-Hirschfeld',  'email' => 'leopardgecko333@gmx.de',                 'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'lionhartmann@yahoo.de',                  'local_group' => 'wm',   'firstname' => 'Lion',          'lastname' => 'Hartmann',          'email' => 'lionhartmann@yahoo.de',                  'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'lisa.sy@gmx.net',                        'local_group' => 'lv',   'firstname' => 'Lisa',          'lastname' => 'Synnatzschke',      'email' => 'lisa.sy@gmx.net',                        'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'lukas.dalpke@gmx.de',                    'local_group' => 'gr',   'firstname' => 'Lukas',         'lastname' => 'Dalpke',            'email' => 'lukas.dalpke@gmx.de',                    'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'marc.friede@gmx.de',                     'local_group' => 'lv',   'firstname' => 'Marc',          'lastname' => 'Friede',            'email' => 'marc.friede@gmx.de',                     'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'marcel.pfadfinden@familiebrause.de',     'local_group' => 'fen',  'firstname' => 'Marcel',        'lastname' => 'Brause',            'email' => 'marcel.pfadfinden@familiebrause.de',     'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'maria.hahn1991@gmx.de',                  'local_group' => 'wm',   'firstname' => 'Clara Sophie',  'lastname' => 'Hahn',              'email' => 'maria.hahn1991@gmx.de',                  'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'marlene.koehler@pfadfinden.de',          'local_group' => 'lv',   'firstname' => 'Marlene',       'lastname' => 'Köhler',            'email' => 'marlene.koehler@pfadfinden.de',          'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'marslisdneu@aol.de',                     'local_group' => 'feu',  'firstname' => 'Steffi',        'lastname' => 'Deckenbach',        'email' => 'marslisdneu@aol.de',                     'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'mascha.meyenschein@pfadfinden.de',       'local_group' => 'lv',   'firstname' => 'Mascha',        'lastname' => 'Meyenschein',       'email' => 'mascha.meyenschein@pfadfinden.de',       'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'nataliehammer22@web.de',                  'local_group' => 'lv',   'firstname' => 'Nathalie',      'lastname' => 'Hammermüller',      'email' => 'nataliehammer22@web.de',                 'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'pdeakova@centrum.cz',                    'local_group' => 'fen',  'firstname' => 'Mikulas',       'lastname' => 'Loub',              'email' => 'pdeakova@centrum.cz',                    'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'pfadfinden@christian-schlag.org',        'local_group' => 'wm',   'firstname' => 'Christian',     'lastname' => 'Schlag',            'email' => 'pfadfinden@christian-schlag.org',        'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'rebekka.thielen@googlemail.com',         'local_group' => 'lv',   'firstname' => 'Almuna Elisa',  'lastname' => 'Hines',             'email' => 'rebekka.thielen@googlemail.com',         'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'rieke.langhans@gmail.com',               'local_group' => 'lv',   'firstname' => 'Rieke',         'lastname' => 'Langhans',          'email' => 'rieke.langhans@gmail.com',               'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'rolle@tocraft.dev',                      'local_group' => 'anc',  'firstname' => 'Tobias',        'lastname' => 'Cuiper',            'email' => 'rolle@tocraft.dev',                      'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'ronja.opel@icloud.com',                  'local_group' => 'leo',  'firstname' => 'Ronja',         'lastname' => 'Opel',              'email' => 'ronja.opel@icloud.com',                  'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'schubert-steffi83@web.de',               'local_group' => 'fen',  'firstname' => 'Fino Kilian',   'lastname' => 'Schubert',          'email' => 'schubert-steffi83@web.de',               'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'sebastianeckloff@gmx.de',                'local_group' => 'lv',   'firstname' => 'Sebastian',     'lastname' => 'Eckloff',           'email' => 'sebastianeckloff@gmx.de',                'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'sonne.grazek@yahoo.de',                  'local_group' => 'feu',  'firstname' => 'Mandy',         'lastname' => 'Grazek',            'email' => 'sonne.grazek@yahoo.de',                  'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'flieder.pfadfinden@familiebrause.de',    'local_group' => 'fen',  'firstname' => 'Sophie',        'lastname' => 'Brause',            'email' => 'flieder.pfadfinden@familiebrause.de',    'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'Theresa.grafe@posteo.de',                'local_group' => 'lv',   'firstname' => 'Theresa',       'lastname' => 'Grafe',             'email' => 'Theresa.grafe@posteo.de',                'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_ADMINISTRATOR', 'user_role_local_group' => 'ROLE_USER',         'username' => 'tux@goldenerreiter.org',                 'local_group' => 'gr',   'firstname' => 'Christoph',     'lastname' => 'Wagner',            'email' => 'tux@goldenerreiter.org',                 'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'undine.reschke@web.de',                  'local_group' => 'lv',   'firstname' => 'Undine',        'lastname' => 'Reschke',           'email' => 'undine.reschke@web.de',                  'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
            ['user_role_main' => 'ROLE_USER',          'user_role_local_group' => 'ROLE_USER',         'username' => 'yannik@suck-taucha.de',                  'local_group' => 'lv',   'firstname' => 'Yannik',        'lastname' => 'Suck',              'email' => 'yannik@suck-taucha.de',                  'activation_token_expires_at' => '2026-02-20 21:53:58', 'active' => true],
        ];

        foreach ($users as $userData) {
            User::create($userData);
        }
    }

    private function installCronTasks() {
        CronTask::create(['name' => 'UploadInvoices', 'execution_type' => CronTaskType::CRON_TASK_TYPE_REALTIME]);
        CronTask::create(['name' => 'CloseCostUnit', 'execution_type' => CronTaskType::CRON_TASK_TYPE_DAILY, 'schedule_time' => '00:05']);
        CronTask::create(['name' => 'CloseEvent', 'execution_type' => CronTaskType::CRON_TASK_TYPE_DAILY, 'schedule_time' => '00:10']);
        CronTask::create(['name' => 'NotifyTeam', 'execution_type' => CronTaskType::CRON_TASK_TYPE_DAILY, 'schedule_time' => '20:00']);
    }
}
