<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Domain>
 */
class DomainFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'domain_hash' => bin2hex(random_bytes(32)),
            'name' => $this->faker->unique()->domainName(),
            'allowed_types' => ['public', 'premium'],
            'is_active' => true,
            'is_archived' => false,
        ];
    }
}
