<?php

namespace Database\Factories;

use App\Models\Attendance;
use App\Models\Payroll;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

class PayrollAdjustmentFactory extends Factory
{
    public function definition(): array
    {
        return [
            'payroll_id' => Payroll::factory(),
            'attendance_id' => Attendance::factory(),
            'created_by_id' => User::factory(),
            'type' => fake()->randomElement(['bonus', 'deduction']),
            'amount' => fake()->numberBetween(10000, 500000),
            'description' => fake()->sentence(),
        ];
    }
}
