<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Jabatan extends Model
{
    use HasFactory;

    protected $table = 'jabatan';
    protected $primaryKey = 'id_kategori';
    public $timestamps = false;
    
    protected $fillable = ['Kategori_bidang_kerja', 'nilai'];

    // Relasi ke DataAlumni
    public function dataAlumni()
    {
        return $this->hasMany(DataAlumni::class, 'jabatan', 'id_kategori');
    }
}