<?php

namespace App\Models;

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

class PilihanSekolah extends Model
{
    protected $table = 'pilihan_sekolah';

    protected $fillable = [
        'siswa_id',
        'nama_sekolah',
        'jenjang',
        'keterangan',
    ];

    public function siswa(): BelongsTo
    {
        return $this->belongsTo(Siswa::class, 'siswa_id');
    }
}
