This commit is contained in:
37
api/app/Models/TransportePaciente/Acompanhante.php
Normal file
37
api/app/Models/TransportePaciente/Acompanhante.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\TransportePaciente;
|
||||
|
||||
use App\Models\Cadastro\SujeitoAtencao\Paciente;
|
||||
use App\Models\Model;
|
||||
|
||||
class Acompanhante extends Model
|
||||
{
|
||||
protected $table = 'transporte_paciente_acompanhante';
|
||||
|
||||
protected $fillable = [
|
||||
'relacao_id',
|
||||
'usuario_id',
|
||||
'nome',
|
||||
'telefone',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function usuario()
|
||||
{
|
||||
return $this->belongsTo(Paciente::class);
|
||||
}
|
||||
|
||||
public function relacao()
|
||||
{
|
||||
return $this->belongsTo(Relacao::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user