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,57 @@
<?php
namespace App\Models\TransportePaciente\Destino;
use App\Models\Cadastro\Localizacao\LogradouroTipo;
use App\Models\Intranet\Municipio;
use App\Models\Model;
class Destino extends Model
{
protected $table = 'transporte_paciente_destino';
protected $fillable = [
'id',
'descricao_destino',
'numero_telefone_fax',
'data_inclusao',
'destino_tipo_id',
'numero_cnpj',
'numero_cpf',
'nome_logradouro',
'numero_logradouro',
'nome_complemento',
'nome_bairro',
'numero_cep',
'numero_telefone_comercial',
'observacao',
'cnes',
'bloqueado',
'tipo_prestador',
'distancia',
'cadastro_logradouro_tipo_id',
'documento_tipo_id',
'usuario_id',
'estado_id',
'municipio_id',
];
protected $hidden = [
'created_at',
'created_lotacao_id',
'created_centro_custo_id',
'updated_at',
'updated_lotacao_id',
'updated_centro_custo_id',
];
public function municipio()
{
return $this->belongsTo(Municipio::class);
}
public function tipo()
{
return $this->belongsTo(LogradouroTipo::class, 'cadastro_logradouro_tipo_id');
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Models\TransportePaciente\Destino;
use App\Models\Model;
class DestinoTipo extends Model
{
protected $table = 'transporte_paciente_destino_tipo';
protected $fillable = [
'id',
'descricao'
];
protected $hidden = [
'created_at',
'updated_at',
];
}