2022-06-14 01:21:39 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class Estandar extends Model
|
|
|
|
{
|
2022-07-09 03:09:04 +00:00
|
|
|
|
2022-06-14 01:21:39 +00:00
|
|
|
use HasFactory;
|
2022-08-02 04:44:21 +00:00
|
|
|
public $timestamps = true;
|
2022-07-09 03:09:04 +00:00
|
|
|
protected $table ='estandars';
|
|
|
|
protected $fillable = [
|
|
|
|
'name',
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
public function users(){
|
|
|
|
return $this->belongsTo(User::class,'id_user');
|
|
|
|
}
|
|
|
|
public function plans(){
|
2022-08-22 20:50:45 +00:00
|
|
|
return $this->hasMany(plan::class,'id_estandar');
|
2022-07-09 03:09:04 +00:00
|
|
|
}
|
2022-07-27 05:42:33 +00:00
|
|
|
|
2022-06-14 01:21:39 +00:00
|
|
|
}
|