<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Rol extends Model
{
    protected $primaryKey = 'rol_id';
    protected $table = 'erc_roles';
    protected $fillable = [
						'rol_id',
						'rol_codigo',
						'rol_nombre',
						'rol_descripcion',
					];
   	public $timestamps = false;


    /*
    * Relaciones
    *
    *
    */
   	public function usuarios()
    {
    	return $this->hasMany('App\User', 'rol_id', 'rol_id');
    }
}
