36 lines
703 B
PHP
36 lines
703 B
PHP
<?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);
|
|
}
|
|
}
|