<?php

namespace App\Models;

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

class LevelPegawai extends Model
{
    use HasFactory;

    protected $table = 'level_user';

    protected $fillable = [ 'level_code', 'level_name' ];
    
    public function levelPegawai ()
    {
        return $this->belongsTo(User::class, 'level_pegawai', 'level_code');
    }
}
