<?php

namespace Database\Factories;

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

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Policy>
 */
class PolicyFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'managed_environment_id' => ManagedEnvironment::factory(),
            'external_id' => fake()->uuid(),
            'display_name' => fake()->words(3, true),
            'policy_type' => 'settingsCatalogPolicy',
            'platform' => fake()->randomElement(['android', 'iOS', 'macOS', 'windows10']),
            'last_synced_at' => now(),
            'metadata' => [],
        ];
    }
}
