<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

class PayrollPeriodFactory extends Factory
{
    public function definition(): array
    {
        return [
            'year' => fake()->year(),
            'month' => fake()->numberBetween(1, 12),
            'status' => fake()->randomElement(['open', 'closed']),
            'closed_at' => null,
        ];
    }
}
