<?php

namespace App\Danoral\Entidades;

use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
use Spatie\Permission\Traits\HasRoles;


class EntidadUserView extends Authenticatable
{
    use HasApiTokens;
    use Notifiable;
    use HasRoles;

    protected $table = 'admin.entidades_users_view';
    protected $primaryKey = 'idE';
    protected $keyType = 'bigint';
    public $incrementing = false;
    public $timestamps = false;


    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password',
    ];

    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = [
        'email_verified_at' => 'datetime',
    ];
}