48 lines
1.0 KiB
PHP
48 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Models\ProntoAtendimento\AssistenciaSocial;
|
|
|
|
use App\Models\Cadastro\SujeitoAtencao\Usuario;
|
|
use App\Models\Model;
|
|
use App\Models\ProntoAtendimento\AssistenciaSocial\AssistenciaSocial;
|
|
use App\Models\ProntoAtendimento\Atendimento\Atendimento;
|
|
|
|
class AssistenciaSocialHistorico extends Model
|
|
{
|
|
protected $table = 'pronto_atendimento_assistencia_social_historico';
|
|
|
|
protected $fillable = [
|
|
'id',
|
|
'assistencia_id',
|
|
'atendimento_id',
|
|
'paciente_id',
|
|
'ocupacao_id',
|
|
'usuario_id',
|
|
'anotacao',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_lotacao_id',
|
|
'created_centro_custo_id',
|
|
'updated_at',
|
|
'updated_lotacao_id',
|
|
'updated_centro_custo_id',
|
|
];
|
|
|
|
public function assistenciaSocial()
|
|
{
|
|
return $this->belongsTo(AssistenciaSocial::class);
|
|
}
|
|
|
|
public function usuario()
|
|
{
|
|
return $this->belongsTo(Usuario::class);
|
|
}
|
|
|
|
public function atendimento()
|
|
{
|
|
return $this->belongsTo(Atendimento::class);
|
|
}
|
|
|
|
}
|