<?php

namespace App\Models;

use App\Models\Admin\MsKonselor;
use App\Models\Admin\TrKeahlianKonselor;
use App\Models\Role;
use App\Traits\Uuid;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Spatie\Permission\Traits\HasRoles;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Database\Eloquent\SoftDeletes;

class User extends Authenticatable
{
    use HasFactory, Notifiable, Uuid, HasRoles;

    public $incrementing = false;
    protected $table = 'users';
    protected $primaryKey = 'id';
    protected $keyType = 'string';
    
    protected $fillable = [
        'id', 'name', 'email', 'password', 'role', 'is_active', 'userid_created', 'userid_updated', 'nohp', 'mt_rekanan_id','id_sp','id_prodi','id_sms','prodi'
    ];
    protected $hidden = [
        'password', 'remember_token',
    ];

}