<?php

namespace Database\Factories;

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

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Student>
 */
class StudentFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'user_id' => User::factory(),
            'full_name' => fake()->name(),
            'student_number' => fake()->unique()->numerify('##########'),
            'phone_number' => fake()->phoneNumber(),
            'sex' => fake()->randomElement(['male', 'female']),
            'address' => fake()->address(),
            'date_of_birth' => fake()->date(),
            'place_of_birth' => fake()->city(),
        ];
    }
}
