This commit is contained in:
34
api/app/Models/Ambulatorio/CasoSuspeitoFicha.php
Normal file
34
api/app/Models/Ambulatorio/CasoSuspeitoFicha.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Ambulatorio;
|
||||
|
||||
use App\Models\Ambulatorio\Atendimento;
|
||||
use App\Models\Ambulatorio\CasoSuspeito;
|
||||
|
||||
use App\Models\Model;
|
||||
class CasoSuspeitoFicha extends Model
|
||||
{
|
||||
protected $table = 'ambulatorio_caso_suspeito_ficha';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'atendimento_id',
|
||||
'caso_suspeito_id',
|
||||
'numero',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function atendimento()
|
||||
{
|
||||
return $this->hasMany(Atendimento::class);
|
||||
}
|
||||
|
||||
public function CasoSuspeito()
|
||||
{
|
||||
return $this->hasMany(CasoSuspeito::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user