This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\ProntoAtendimento\AssistenciaSocial;
|
||||
|
||||
use App\Models\Cadastro\SujeitoAtencao\Lotacao;
|
||||
use App\Models\Cadastro\SujeitoAtencao\Usuario;
|
||||
use App\Models\Model;
|
||||
use App\Models\ProntoAtendimento\AssistenciaSocial\AssistenciaSocialHistorico;
|
||||
use App\Models\ProntoAtendimento\Atendimento\Atendimento;
|
||||
|
||||
class AssistenciaSocial extends Model
|
||||
{
|
||||
protected $table = 'pronto_atendimento_assistencia_social';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'atendimento_id',
|
||||
'ocupacao_id',
|
||||
'paciente_id',
|
||||
'usuario_id',
|
||||
'data_anotacao',
|
||||
'anotacao',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function usuario()
|
||||
{
|
||||
return $this->belongsTo(Usuario::class);
|
||||
}
|
||||
|
||||
public function atendimento()
|
||||
{
|
||||
return $this->belongsTo(Atendimento::class);
|
||||
}
|
||||
|
||||
public function assistenciaSocialHistorico()
|
||||
{
|
||||
return $this->belongsTo(AssistenciaSocialHistorico::class);
|
||||
}
|
||||
|
||||
public function lotacao()
|
||||
{
|
||||
return $this->belongsTo(Lotacao::class);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user