45 lines
999 B
PHP
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');
|
|
}
|
|
}
|