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,108 @@
<?php
namespace App\Models\TransportePaciente\Faturamento;
use App\Models\Cadastro\SujeitoAtencao\Paciente;
use App\Models\Intranet\Municipio;
use App\Models\Model;
use App\Models\TransportePaciente\Agendar\Agendar;
use App\Models\TransportePaciente\Destino\Destino;
use App\Models\TransportePaciente\Jornada\Jornada;
use App\Models\TransportePaciente\Motivo\Motivo;
use App\Models\TransportePaciente\Ponto\Ponto;
use App\Models\TransportePaciente\PreAgendamentoTransporte;
use App\Models\TransportePaciente\Status\Status;
use App\Models\TransportePaciente\Veiculo\TipoPassageiro;
use App\Models\TransportePaciente\Veiculo\Veiculo;
class Faturamento extends Model
{
protected $table = 'transporte_paciente_faturamento';
protected $fillable = [
'id',
'agendamento_id',
'bpa_procedimento_id',
'procedimento_id',
'lotacao_id',
'ocupacao_id',
'quantidade',
'cid_principal_id',
'cid_secundario_id',
'paciente_id',
'motivo_id',
'destino_id',
'distancia',
];
protected $hidden = [
'created_at',
'created_lotacao_id',
'created_centro_custo_id',
'updated_at',
'updated_lotacao_id',
'updated_centro_custo_id',
];
public function agendamento()
{
return $this->belongsTo(Agendar::class);
}
public function paciente()
{
return $this->belongsTo(Paciente::class);
}
public function motivo()
{
return $this->belongsTo(Motivo::class);
}
public function municipio()
{
return $this->belongsTo(Municipio::class);
}
public function destino()
{
return $this->belongsTo(Destino::class);
}
public function ponto()
{
return $this->belongsTo(Ponto::class);
}
public function tipoPassageio()
{
return $this->belongsTo(TipoPassageiro::class);
}
public function veiculo()
{
return $this->belongsTo(Veiculo::class);
}
public function jornada()
{
return $this->belongsTo(Jornada::class);
}
public function preAgendamento()
{
return $this->belongsTo(PreAgendamentoTransporte::class);
}
public function status()
{
return $this->belongsTo(Status::class);
}
public function procedimento()
{
return $this->belongsTo(SigtapProcedimento::class);
}
}