<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Especialidad extends Model
{
    protected $table = "ins_especialidad";
    protected $primaryKey = 'cve_esp';
    protected $fillable = ['nombre_esp', 'clave_esp', 'fechaIni_esp', 'fechaFin_esp', 'status_esp', 'cve_planest'];

    public function planestudio()
    {
        return $this->hasOne('App\Planestudios', 'cve_planest', 'cve_planest');
    }
}
