<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;

class KualifikasiBidang extends Model
{
   use HasFactory;

    protected $table = 'kualifikasi_bidang';
    protected $primaryKey = 'id_kualifikasi';
    public $timestamps = false;

    protected $keyType = 'int'; // Menentukan tipe primary key (int)
    public $incrementing = true; // Mengaktifkan auto-increment untuk primary key

    
    protected $fillable = ['kualifikasi_bidang', 'nilai'];

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