This commit is contained in:
32
api/app/Models/Cadastro/SujeitoAtencao/DoencaCronica.php
Normal file
32
api/app/Models/Cadastro/SujeitoAtencao/DoencaCronica.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Cadastro\SujeitoAtencao;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class DoencaCronica extends Model
|
||||
{
|
||||
protected $table = 'cadastro_cidadao_doenca_cronica';
|
||||
|
||||
protected $fillable = [
|
||||
'cidadao_id',
|
||||
'descricao',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
'deleted_at',
|
||||
'deleted_lotacao_id',
|
||||
'deleted_centro_custo_id',
|
||||
];
|
||||
|
||||
public function cidadao()
|
||||
{
|
||||
return $this->belongsToMany(Cidadao::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user