<?php

namespace Database\Factories;

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

class StudentFactory extends Factory
{
    protected $model = Student::class;

    public function definition(): array
    {
        return [
            'student_id' => $this->faker->unique()->numberBetween(10000, 99999),
            'name' => $this->faker->name(),
            'grade' => $this->faker->randomElement(['一年级', '二年级', '三年级']),
            'class_name' => $this->faker->randomElement(['一班', '二班', '三班']),
            'teacher_id' => null,
            'remark' => $this->faker->sentence(),
        ];
    }
}
