unsa-pis-be/app/Models/CausasRaices.php
2022-08-01 23:44:21 -05:00

22 lines
404 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class CausasRaices extends Model
{
use HasFactory;
public $timestamps = true;
protected $table ='causas_raices';
protected $fillable = [
'descripcion',
];
public function plans(){
return $this->belongsTo(plan::class,'id_plan');
}
}