<?php

use App\Enums\EstadoCivilEnum;
use App\Enums\SexoEnum;
use App\Models\Servidor;
use Faker\Generator as Faker;

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generate new
| model instances for testing / seeding your application's database.
|
*/
$factory->define(Servidor::class, function (Faker $faker) {
    return [
        'nome' => $faker->name,
        'nome_social' => null,
        'cpf' => '123456789',
        'rg' => '12345567',
        'nao_perturbe' => false,
        'nome_pai' => $faker->name,
        'nome_mae' => $faker->name,
        'nacionalidade' => 'Brasileira',
        'naturalidade' => 'Santos',
        'data_nascimento' => '27/01/1988',
        'estado_civil' => EstadoCivilEnum::solteiro(),
        'sexo' => SexoEnum::masculino(),
    ];
});
