<?php

namespace Database\Factories;

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

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Student>
 */
class StudentFactory extends Factory
{
    protected $model = Student::class;

    public function definition(): array
    {
        return [
            'school_id' => 'S-' . fake()->numberBetween(100, 999),
            'firstname' => fake()->firstName(),
            'lastname' => fake()->lastName(),
            'age' => fake()->numberBetween(6, 18),
            'gender' => fake()->randomElement(['Male', 'Female']),
            'is_active' => 1,
            'registration_grade' => 'Grade ' . fake()->numberBetween(1, 8),
            'is_new' => 1,
            'photo_consent' => 1,
            'parent_id' => fake()->numberBetween(1, 50),
            'tuition_paid' => 0,
            'semester' => 'Fall',
            'year_of_registration' => '2025',
            'school_year' => '2025-2026',
        ];
    }
}
