<?php
namespace Database\Factories;

use App\Models\Mission;
use App\Models\Candidat;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

class RemplacementFactory extends Factory
{
    public function definition(): array
    {
        return [
            'mission_id' => Mission::factory(),
            'ancien_candidat_id' => Candidat::factory(),
            'nouveau_candidat_id' => Candidat::factory(),
            'motif' => fake()->paragraph(),
            'remplace_par' => User::factory()->admin(),
            'date_remplacement' => fake()->dateTimeBetween('-1 month', 'now'),
        ];
    }
}
