<?php

namespace Database\Factories;

use App\Models\ManagedEnvironment;
use App\Models\TenantSetting;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<TenantSetting>
 */
class TenantSettingFactory extends Factory
{
    protected $model = TenantSetting::class;

    /**
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'workspace_id' => null,
            'managed_environment_id' => ManagedEnvironment::factory(),
            'domain' => 'backup',
            'key' => 'retention_keep_last_default',
            'value' => 45,
            'updated_by_user_id' => User::factory(),
        ];
    }
}
