This commit is contained in:
33
api/app/Models/ProntoAtendimento/Raat/ParteCorpoAtingida.php
Normal file
33
api/app/Models/ProntoAtendimento/Raat/ParteCorpoAtingida.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\ProntoAtendimento\Raat;
|
||||
|
||||
use App\Models\Model;
|
||||
use App\Models\ProntoAtendimento\Atendimento\RaatParecerMedico;
|
||||
use App\Models\ProntoAtendimento\Atendimento\RaatParecerMedicoParteCorpoAtingida;
|
||||
|
||||
class ParteCorpoAtingida extends Model
|
||||
{
|
||||
protected $table = 'pronto_atendimento_raat_parte_corpo_atingida';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'nome'
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
'pivot'
|
||||
];
|
||||
|
||||
public function pareceresMedico()
|
||||
{
|
||||
return $this->belongsToMany(
|
||||
RaatParecerMedico::class,
|
||||
'pronto_atendimento_raat_parecer_medico_parte_corpo_atingida',
|
||||
'parte_corpo_atingida_id',
|
||||
'parecer_medico_id'
|
||||
)->using(RaatParecerMedicoParteCorpoAtingida::class)->withTimestamps();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user