<?php

namespace Database\Factories;

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

/**
 * @extends Factory<DailyAttendance>
 */
class DailyAttendanceFactory extends Factory
{
    protected $model = DailyAttendance::class;

    public function definition(): array
    {
        return [
            'employee_id' => Employee::factory(),
            'date' => now()->toDateString(),
            'first_in' => now(),
            'last_out' => null,
            'worked_minutes' => null,
            'late' => false,
            'early_out' => false,
            'status' => 'present',
        ];
    }
}
