38 lines
813 B
PHP
38 lines
813 B
PHP
<?php
|
|
|
|
namespace App\Models\Parametrizacao\Exame;
|
|
use App\Models\ExameLaboratorial\FormulaExame\FormulaExameFator;
|
|
use App\Models\Model;
|
|
use App\Models\Parametrizacao\Exame\ExameComposicao;
|
|
|
|
class ExameComposicaoVariavel extends Model
|
|
{
|
|
|
|
protected $table = 'parametrizacao_exame_composicao_variavel';
|
|
|
|
protected $fillable = [
|
|
'composicao_id',
|
|
'fator_id',
|
|
'ordem',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_at',
|
|
'created_lotacao_id',
|
|
'created_centro_custo_id',
|
|
'updated_at',
|
|
'updated_lotacao_id',
|
|
'updated_centro_custo_id',
|
|
];
|
|
|
|
public function composicao()
|
|
{
|
|
return $this->belongsTo(ExameComposicao::class);
|
|
}
|
|
|
|
public function fator()
|
|
{
|
|
return $this->belongsTo(FormulaExameFator::class);
|
|
}
|
|
}
|