<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    public function run(): void
    {
        if (app()->environment('production') && ! filter_var(env('SEED_DEMO', false), FILTER_VALIDATE_BOOLEAN)) {
            $this->call([
                SystemSettingSeeder::class,
                AdminUserSeeder::class,
                GameSeeder::class,
                ManualPaymentMethodSeeder::class,
            ]);

            return;
        }

        $this->call([
            SystemSettingSeeder::class,
            AdminUserSeeder::class,
            GameSeeder::class,
            ManualPaymentMethodSeeder::class,
            EventSeeder::class,
            DemoUserSeeder::class,
            PlayerGameProfileSeeder::class,
            PlayerContentSeeder::class,
            EventRegistrationSeeder::class,
            AuditLogSeeder::class,
        ]);
    }
}
