This commit is contained in:
51
api/app/Models/Imunizacao/RegistroAprazamento.php
Normal file
51
api/app/Models/Imunizacao/RegistroAprazamento.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Imunizacao;
|
||||
|
||||
use App\Models\Cadastro\SujeitoAtencao\Paciente;
|
||||
use App\Models\Cadastro\Vacina;
|
||||
use App\Models\Model;
|
||||
|
||||
class RegistroAprazamento extends Model
|
||||
{
|
||||
protected $table = 'imunizacao_registro_aprazamento';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'registro_aplicacao_id',
|
||||
'paciente_id',
|
||||
'vacina_id',
|
||||
'dose_id',
|
||||
'data_aprazamento',
|
||||
'observacao',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function registroAplicacao()
|
||||
{
|
||||
return $this->belongsTo(RegistroAplicacao::class);
|
||||
}
|
||||
|
||||
public function paciente()
|
||||
{
|
||||
return $this->belongsTo(Paciente::class);
|
||||
}
|
||||
|
||||
public function vacina()
|
||||
{
|
||||
return $this->belongsTo(Vacina::class);
|
||||
}
|
||||
|
||||
public function dose()
|
||||
{
|
||||
return $this->belongsTo(Dose::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user