<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Admission extends Model
{
    protected $fillable = [
        'level_id', 'guardian_name', 'email', 'phone', 'student_name',
        'birth_date', 'message', 'status',
    ];

    protected $casts = [
        'birth_date' => 'date',
    ];

    public function level()
    {
        return $this->belongsTo(Level::class);
    }
}
