<?php

namespace Database\Seeders\Tenant;

use App\Facades\Settings;
use Illuminate\Database\Seeder;

class SiteAccessLinkExpirySeed extends Seeder
{
    public function run(): void
    {
        Settings::make([
            'tab' => 'Site',
            'section' => 'General',
            'group' => 'Restricted access',
            'name' => 'Access link expiry',
            'config_key' => 'site-access-link-expiry-hours',
            'type' => 'string',
            'value' => '1',
            'description' => 'How long an emailed access link stays valid.',
            'choices' => [
                ['value' => '1', 'name' => '1 hour'],
                ['value' => '2', 'name' => '2 hours'],
                ['value' => '4', 'name' => '4 hours'],
                ['value' => '12', 'name' => '12 hours'],
                ['value' => '24', 'name' => '24 hours'],
            ],
        ]);
    }
}
