This commit is contained in:
44
api/app/Models/Ambulatorio/AtendimentoSoapFeridaMaterial.php
Normal file
44
api/app/Models/Ambulatorio/AtendimentoSoapFeridaMaterial.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user