This commit is contained in:
39
api/app/Models/Cadastro/FeridaProcedimento.php
Normal file
39
api/app/Models/Cadastro/FeridaProcedimento.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Cadastro;
|
||||
|
||||
use App\Models\Model;
|
||||
use App\Models\Sigtap\Procedimento;
|
||||
use App\Models\Sigtap\Cid;
|
||||
|
||||
class FeridaProcedimento extends Model
|
||||
{
|
||||
protected $table = 'cadastro_ferida_procedimento';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'procedimento_id',
|
||||
'ferida_id',
|
||||
'cid_id',
|
||||
'quantidade'
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function procedimento()
|
||||
{
|
||||
return $this->belongsTo(Procedimento::class);
|
||||
}
|
||||
|
||||
public function cid()
|
||||
{
|
||||
return $this->belongsTo(Cid::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user