<?php

namespace Database\Factories;

use App\Models\Email;
use App\Models\Person\Person;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<Email>
 */
class EmailFactory extends Factory
{
    protected $model = Email::class;

    public function definition(): array
    {
        return [
            'person_id' => Person::factory(),
            'value' => $this->faker->unique()->safeEmail(),
            'label' => null,
            'is_primary' => false,
            'is_active' => true,
            'valid' => true,
        ];
    }
}
