<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;

use App\Models\DynamicWebConfiguration;

class WebConfigurationSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DynamicWebConfiguration::create([
			'name' => 'MaintenancePassword',
			'value' => json_encode(
				[
					'combination' => [0,7,8,9,10,11],
					'password' => '@bs0lut3lyM@55!v3P@55w0rd'
				])
		]); // please please please please please please please change the default password
		
		DynamicWebConfiguration::create([
			'name' => 'ComputeServiceAccessKey',
			'value' => '92a6ac6b-7167-49b1-9ccd-079820ac892b'
		]); // change this as well
		
		DynamicWebConfiguration::create([
			'name' => 'WhitelistedIPs',
			'value' => '127.0.0.1'
		]);
		
		DynamicWebConfiguration::create([
			'name' => 'VersionCompatibilityVersions',
			'value' => '0.1.0pcplayer' // version1;version2;version3
		]);
		
		DynamicWebConfiguration::create([
			'name' => 'VersionCompatibilityHashes',
			'value' => 'debughash' // hash1;hash2;hash3
		]);
		
		DynamicWebConfiguration::create([
			'name' => 'GameArbiterIP',
			'value' => '127.0.0.1'
		]);
		
		DynamicWebConfiguration::create([
			'name' => 'ThumbnailArbiterIP',
			'value' => '127.0.0.1'
		]);
		
		DynamicWebConfiguration::create([
			'name' => 'ClientUploadVersion',
			'value' => 'version-unknown'
		]);
		
		DynamicWebConfiguration::create([
			'name' => 'ClientDeployVersion',
			'value' => '0.0.0.0'
		]);
		
		DynamicWebConfiguration::create([
			'name' => 'ClientLauncherDeployVersion',
			'value' => '0, 0, 0, 0'
		]);
		
		DynamicWebConfiguration::create([
			'name' => 'StudioUploadVersion',
			'value' => 'version-unknown'
		]);
		
		DynamicWebConfiguration::create([
			'name' => 'StudioDeployVersion',
			'value' => '0.0.0.0'
		]);
		
		DynamicWebConfiguration::create([
			'name' => 'StudioLauncherDeployVersion',
			'value' => '0, 0, 0, 0'
		]);
    }
}
