34 lines
643 B
PHP
34 lines
643 B
PHP
<?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);
|
|
}
|
|
} |