This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\ExameImagem\Parametrizacao;
|
||||
|
||||
use App\Enums\ExameImagem\Parametrizacao\ControleJornada\Tipo;
|
||||
use App\Models\ExameImagem\Parametrizacao;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ControleJornada extends Model
|
||||
{
|
||||
protected $table = 'exame_imagem_parametrizacao_controle_jornada';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'tipo_controle',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
|
||||
public function parametrizacaoExameImagem()
|
||||
{
|
||||
return $this->hasOne(Parametrizacao::class);
|
||||
}
|
||||
public function tipo()
|
||||
{
|
||||
return $this->belongsTo(Tipo::class);
|
||||
}
|
||||
|
||||
public function getIsAllowedToDeleteAttribute()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user