<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;

class SystemSettingsSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $data = [
            [
                'name' => 'WFH Log Interval',
                'description' => 'Minute interval for pop up to appear during WFH',
                'key' => 'logInterval',
                'value' => '60',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'name' => 'Activate WFH Monitoring',
                'description' => 'Activate the monitoring tools for WFH',
                'key' => 'activateUserLogger',
                'value' => '1',
                'created_at' => now(),
                'updated_at' => now(),
            ],


        ];

        \App\Models\SystemSetting::insert($data);
    }

    public function reset()
    {
        \App\Models\SystemSetting::truncate();
    }
}
