This commit is contained in:
28
api/app/Models/Cadastro/SujeitoAtencao/CidadaoAlergia.php
Normal file
28
api/app/Models/Cadastro/SujeitoAtencao/CidadaoAlergia.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Cadastro\SujeitoAtencao;
|
||||
|
||||
use App\Models\Pivot;
|
||||
use App\Models\Sigtap\Cid;
|
||||
|
||||
class CidadaoAlergia extends Pivot
|
||||
{
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function criticidade()
|
||||
{
|
||||
return $this->belongsTo(AlergiaCriticidade::class);
|
||||
}
|
||||
|
||||
public function cid()
|
||||
{
|
||||
return $this->belongsTo(Cid::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user