This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\ExameLaboratorial\Parametrizacao;
|
||||
|
||||
use App\Models\Cadastro\Estabelecimento\Infraestrutura;
|
||||
use App\Models\Cadastro\Estabelecimento\Unidade as EstabelecimentoUnidade;
|
||||
use App\Models\Model;
|
||||
|
||||
class UnidadeSolicitanteExame extends Model{
|
||||
|
||||
|
||||
protected $table = 'exame_laboratorial_parametrizacao_unidade_solicitante_exame';
|
||||
|
||||
protected $casts = [
|
||||
'urgencia' => 'boolean',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'unidade_id',
|
||||
'infraestrutura_id',
|
||||
'urgencia'
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function unidade()
|
||||
{
|
||||
return $this->belongsTo(EstabelecimentoUnidade::class);
|
||||
}
|
||||
|
||||
public function infraestrutura()
|
||||
{
|
||||
return $this->belongsTo(Infraestrutura::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user