<?php

namespace Database\Factories;

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

class ClientFactory extends Factory
{
    protected $model = Client::class;

    public function definition(): array
    {
        return [
            'title' => 'Mr',
            'name_first' => fake()->firstName(),
            'name_middle' => null,
            'name_last' => fake()->lastName(),
            'name_preferred' => null,
            'date_of_birth' => fake()->dateTimeBetween('-90 years', '-18 years')->format('Y-m-d'),
            'phone_number' => '+447' . fake()->numerify('#########'),
            'email_address' => fake()->unique()->safeEmail(),
            'preferences' => [],
            'lead_source_id' => null,
            'lead_source_endpoint_id' => null,
            'tranche_id' => null,
        ];
    }
}