<?php

declare(strict_types=1);

namespace Database\Factories;

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

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\TicketTag>
 */
class TicketTagFactory extends Factory
{
    protected $model = TicketTag::class;

    /** @return array<string, mixed> */
    public function definition(): array
    {
        return [
            'name' => fake()->unique()->randomElement(['bug', 'feature-request', 'urgent', 'billing-issue', 'network', 'abuse', 'migration', 'dns']),
            'color' => fake()->hexColor(),
        ];
    }
}
