<?php

namespace App\Models;

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

class RiwayatStatusSiswa extends Model
{
    protected $table = 'riwayat_status_siswa';

    protected $fillable = [
        'siswa_id',
        'tahun_ajaran_id',
        'status_lama',
        'status_baru',
        'keterangan',
    'admin_id',
    ];

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

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