<?php

namespace App\Models;

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

class Usuario extends Model
{
    use HasFactory;
    protected $fillable=[
        'id_user',
        'name',
        'lasname',
        'dni',
        'phone',
        'email',
        'fk_idarea',
        'sign',
        'upload',
        'fk_rol',
        'user',
        'password',
        'token',
        'solo_area',
        'iddocarea',
        'deleted',
        'idsareas',
        'idsflows',
        'fk_idcompany',
        'web',
        'mobile'
    ];
    protected $primaryKey = 'id_user';
    public $timestamps = false;
     protected $casts = [
        'solo_area' => 'boolean',
        // 'web'=>'boolean',
        // 'mobile'=>'boolean'
    ];
    //  protected $casts = [
    //     'deleted' => 'boolean',
    // ];
 
}
