This commit is contained in:
35
api/app/Models/Farmacia/AppCidadaoLog.php
Normal file
35
api/app/Models/Farmacia/AppCidadaoLog.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Farmacia;
|
||||
|
||||
use App\Models\Cadastro\SujeitoAtencao\Paciente;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Models\Farmacia\Receita;
|
||||
use App\Models\Farmacia\ReceitaItem;
|
||||
|
||||
class AppCidadaoLog extends Model
|
||||
{
|
||||
protected $table = 'farmacia_app_cidadao_log';
|
||||
|
||||
protected $fillable = [
|
||||
'paciente_id',
|
||||
'receita_id',
|
||||
'receita_item_id',
|
||||
'tipo_acao',
|
||||
];
|
||||
|
||||
public function paciente()
|
||||
{
|
||||
return $this->belongsTo(Paciente::class);
|
||||
}
|
||||
|
||||
public function receita()
|
||||
{
|
||||
return $this->belongsTo(Receita::class);
|
||||
}
|
||||
|
||||
public function receitaItem()
|
||||
{
|
||||
return $this->belongsTo(ReceitaItem::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user