39 lines
755 B
PHP
39 lines
755 B
PHP
<?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;
|
|
}
|
|
|
|
}
|