This commit is contained in:
32
api/app/Models/Cadastro/SujeitoAtencao/Deficiencia.php
Normal file
32
api/app/Models/Cadastro/SujeitoAtencao/Deficiencia.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Cadastro\SujeitoAtencao;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class Deficiencia extends Model
|
||||
{
|
||||
protected $table = 'cadastro_deficiencia';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'deficiencia_base_id',
|
||||
'descricao',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
'base_id',
|
||||
];
|
||||
|
||||
public function base()
|
||||
{
|
||||
return $this->belongsTo(DeficienciaBase::class);
|
||||
}
|
||||
|
||||
public function cidadaos()
|
||||
{
|
||||
return $this->hasMany(Cidadao::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user