<?php

namespace Database\Factories;

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

class AttendanceFactory extends Factory
{
    public function definition(): array
    {
        return [
            'employee_id' => Employee::factory(),
            'attendance_date' => fake()->date(),
            'check_in_at' => fake()->dateTimeBetween('-1 day', 'now'),
            'check_out_at' => fake()->dateTimeBetween('now', '+1 day'),
            'check_in_latitude' => fake()->latitude(),
            'check_in_longitude' => fake()->longitude(),
            'check_out_latitude' => fake()->latitude(),
            'check_out_longitude' => fake()->longitude(),
            'work_duration_minutes' => fake()->numberBetween(240, 600),
        ];
    }
}
