init commit
All checks were successful
build-api-image / build (push) Successful in 51s

This commit is contained in:
Antonio Lopes dos Santos
2026-08-04 16:52:02 -03:00
commit afec302c3e
11594 changed files with 1636728 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<?php
namespace App\Models\Farmacia;
use App\Models\Cadastro\SujeitoAtencao\Paciente;
use App\Models\Model;
class ReceitaTratamentoInicio extends Model
{
protected $table = 'farmacia_receita_tratamento_inicio';
public $timestamps = false;
protected $casts = [
'inicio_em' => 'datetime',
'interrompido_em' => 'datetime',
'aderiu_tratamento' => 'boolean',
];
protected $fillable = [
'receita_item_id',
'paciente_id',
'inicio_em',
'interrompido_em',
'aderiu_tratamento',
];
public function receitaItem()
{
return $this->belongsTo(ReceitaItem::class);
}
public function paciente()
{
return $this->belongsTo(Paciente::class);
}
}