This commit is contained in:
31
api/app/Models/Ambulatorio/CasoSuspeitoCid.php
Normal file
31
api/app/Models/Ambulatorio/CasoSuspeitoCid.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Ambulatorio;
|
||||
|
||||
use App\Models\Model;
|
||||
use App\Models\Sigtap\Cid;
|
||||
|
||||
class CasoSuspeitoCid extends Model
|
||||
{
|
||||
protected $table = 'ambulatorio_caso_suspeito_cid';
|
||||
|
||||
protected $fillable = [
|
||||
'caso_suspeito_id',
|
||||
'cid_id'
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function casoSuspeito()
|
||||
{
|
||||
return $this->belongsTo(CasoSuspeito::class);
|
||||
}
|
||||
|
||||
public function cid()
|
||||
{
|
||||
return $this->belongsTo(Cid::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user