<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Referensipkapk extends Model
{
    use SoftDeletes;

    public $table = 'referensipkapks';

    protected $dates = [
        'created_at',
        'updated_at',
        'deleted_at',
    ];

    protected $fillable = [
        'nip',
        'nama',
        'jabatan',
        'created_at',
        'updated_at',
        'deleted_at',
        'pangkat_gol_id',
    ];

    public function pangkat_gol()
    {
        return $this->belongsTo(Referensi::class, 'pangkat_gol_id');
    }
}
