<?php

namespace Database\Factories;

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

class LeaveRequestFactory extends Factory
{
    public function definition(): array
    {
        $start = fake()->date();
        $end = fake()->dateTimeBetween($start, '+7 days')->format('Y-m-d');

        return [
            'employee_id' => Employee::factory(),
            'start_date' => $start,
            'end_date' => $end,
            'total_days' => fake()->numberBetween(1, 7),
            'status' => fake()->randomElement(['pending', 'approved', 'rejected', 'cancelled']),
            'verified_at' => null,
        ];
    }
}
