Files
rkm-conectasus-ci-sandbox/api/app/Models/Ambulatorio/AtendimentoSoapFeridaMaterial.php
Antonio Lopes dos Santos afec302c3e
All checks were successful
build-api-image / build (push) Successful in 51s
init commit
2026-08-04 16:52:02 -03:00

45 lines
999 B
PHP

<?php
namespace App\Models\Ambulatorio;
use App\Models\Almoxarifado\SaidaItem;
use App\Models\Ambulatorio\AtendimentoProcedimento;
use App\Models\Cadastro\Material\Material;
use App\Models\Model;
class AtendimentoSoapFeridaMaterial extends Model
{
protected $table = 'ambulatorio_atendimento_soap_ferida_material';
protected $fillable = [
'material_id',
'atendimento_procedimento_id',
'saida_item_id',
];
protected $hidden = [
'created_at',
'created_lotacao_id',
'created_centro_custo_id',
'updated_at',
'updated_lotacao_id',
'updated_centro_custo_id',
];
public function material()
{
return $this->belongsTo(Material::class);
}
public function atendimentoProcedimento()
{
return $this->belongsTo(AtendimentoProcedimento::class);
}
public function almoxarifadoSaidaItem()
{
return $this->belongsTo(SaidaItem::class, 'saida_item_id');
}
}