This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\ExameLaboratorial\Parametrizacao;
|
||||
|
||||
use App\Models\ExameLaboratorial\Parametrizacao\UnidadeSolicitanteExame;
|
||||
use App\Models\Model;
|
||||
use App\Models\Parametrizacao\Exame\Exame;
|
||||
|
||||
class UnidadeSolicitanteExameItem extends Model{
|
||||
|
||||
|
||||
protected $table = 'exame_laboratorial_parametrizacao_unidade_solicitante_exame_item';
|
||||
|
||||
protected $casts = [
|
||||
'urgencia' => 'boolean',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'unidade_solicitante_exame_id',
|
||||
'exame_id',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function unidadeSolicitanteExame()
|
||||
{
|
||||
return $this->belongsTo(UnidadeSolicitanteExame::class);
|
||||
}
|
||||
|
||||
public function exame()
|
||||
{
|
||||
return $this->belongsTo(Exame::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user