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