<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;

class Student extends Model
{
    use SoftDeletes;

    protected $fillable = [
        'school_id',
        'user_id',
        'student_code',
        'first_name',
        'last_name',
        'national_code',
        'mobile',
        'father_name',
        'mother_name',
        'father_mobile',
        'mother_mobile',
        'home_phone',
        'emergency_phone',
        'birth_date',
        'birth_date_jalali',
        'gender',
        'grade_level_id',
        'address',
        'photo_path',
        'status',
    ];

    public function school(): BelongsTo
    {
        return $this->belongsTo(School::class);
    }
}
