<?php

namespace App\Models;

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

class UserInstansi extends Model
{
    use HasFactory;
    
    protected $table = 'user_instansi';
    protected $primaryKey = 'UserInstansiId';
    protected $guarded = [];

    public function instansi()
    {
        return $this->belongsTo(\App\Models\Master\Instansi::class,'ms_instansi_id','MsInstansiId');
    }
}
