This commit is contained in:
41
api/app/Models/Ambulatorio/AtendimentoMedicamento.php
Normal file
41
api/app/Models/Ambulatorio/AtendimentoMedicamento.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Ambulatorio;
|
||||
|
||||
use App\Models\Almoxarifado\SaidaItem;
|
||||
use App\Models\Model;
|
||||
|
||||
class AtendimentoMedicamento extends Model
|
||||
{
|
||||
protected $table = 'ambulatorio_atendimento_medicamento';
|
||||
|
||||
protected $fillable = [
|
||||
'atendimento_id',
|
||||
'pre_atendimento_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 atendimento()
|
||||
{
|
||||
return $this->belongsTo(Atendimento::class);
|
||||
}
|
||||
|
||||
public function preAtendimento()
|
||||
{
|
||||
return $this->belongsTo(AtendimentoPreAtendimento::class);
|
||||
}
|
||||
|
||||
public function almoxarifadoSaidaItem()
|
||||
{
|
||||
return $this->belongsTo(SaidaItem::class, 'saida_item_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user