38 lines
723 B
PHP
38 lines
723 B
PHP
<?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);
|
|
}
|
|
}
|