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,28 @@
<?php
namespace App\Models\Geral;
use App\Models\Model;
class Ciap extends Model
{
protected $table = 'geral_ciap';
protected $fillable = [
'id',
'descricao',
'codigo',
'grupo_id',
'sexo_id',
];
protected $hidden = [
'created_at',
'updated_at',
];
public function codigosEsus()
{
return $this->hasMany(CiapCodigoEsus::class);
}
}

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Models\Geral;
use App\Models\Model;
class CiapCid extends Model
{
protected $table = 'geral_ciap_cid';
protected $fillable = [
'id',
'codigo_ciap',
'codigo_cid',
];
protected $hidden = [
'created_at',
'updated_at',
];
}

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Models\Geral;
use App\Models\Model;
class CiapCodigoEsus extends Model
{
protected $table = 'geral_ciap_codigo_esus';
protected $fillable = [
'ciap_id',
'codigo',
];
protected $hidden = [
'created_at',
'updated_at',
];
public function ciap()
{
return $this->belongsTo(Ciap::class);
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Models\Geral;
use App\Models\Model;
class Configuracao extends Model
{
protected $table = 'geral_configuracao';
protected $fillable = [
'id',
'maximo_tentativa_login',
];
protected $hidden = [
'created_at',
'updated_at',
];
}

View File

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

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Models\Geral;
use App\Models\Model;
class DocumentoTipo extends Model
{
protected $table = 'geral_documento_tipo';
protected $fillable = [
'id',
'nome'
];
protected $hidden = [
'created_at',
'updated_at',
];
}

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Models\Geral;
use App\Models\Model;
use App\Models\ProntoAtendimento\Plantao\Plantao;
class FaixaEtaria extends Model
{
protected $table = 'geral_faixa_etaria';
protected $fillable = [
'id',
'nome',
];
protected $hidden = [
'created_at',
'updated_at',
];
public function plantoes()
{
return $this->hasMany(Plantao::class);
}
}

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Models\Geral;
use App\Models\Model;
class GlasgowAberturaOcular extends Model
{
protected $table = 'geral_glasgow_abertura_ocular';
protected $fillable = [
'id',
'descricao',
'pontos',
];
protected $hidden = [
'created_at',
'updated_at',
];
}

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Models\Geral;
use App\Models\Model;
class GlasgowInterpretacaoResultado extends Model
{
protected $table = 'geral_glasgow_interpretacao_resultado';
protected $fillable = [
'id',
'min',
'max',
'descricao',
];
protected $hidden = [
'created_at',
'updated_at',
];
}

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Models\Geral;
use App\Models\Model;
class GlasgowReatividadePupilar extends Model
{
protected $table = 'geral_glasgow_reatividade_pupilar';
protected $fillable = [
'id',
'descricao',
'pontos',
];
protected $hidden = [
'created_at',
'updated_at',
];
}

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Models\Geral;
use App\Models\Model;
class GlasgowRespostaMotora extends Model
{
protected $table = 'geral_glasgow_resposta_motora';
protected $fillable = [
'id',
'descricao',
'pontos',
];
protected $hidden = [
'created_at',
'updated_at',
];
}

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Models\Geral;
use App\Models\Model;
class GlasgowRespostaVerbal extends Model
{
protected $table = 'geral_glasgow_resposta_verbal';
protected $fillable = [
'id',
'descricao',
'pontos',
];
protected $hidden = [
'created_at',
'updated_at',
];
}

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Models\Geral;
use App\Models\Model;
class GrupoCiap extends Model
{
protected $table = 'geral_ciap_grupo';
protected $fillable = [
'id',
'descricao',
'codigo',
];
protected $hidden = [
'created_at',
'updated_at',
];
}

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Models\Geral;
use App\Models\Model;
class InterpretacaoImc extends Model
{
protected $table = 'geral_interpretacao_imc';
protected $fillable = [
'id',
'min',
'max',
'descricao',
'classificacao',
'grau_obesidade',
];
protected $hidden = [
'created_at',
'updated_at',
];
}

View File

@@ -0,0 +1,42 @@
<?php
namespace App\Models\Geral;
use App\Models\Cadastro\SujeitoAtencao\Sexo;
use App\Models\Model;
class LmsParametro extends Model
{
protected $table = 'geral_lms_parametro';
protected $fillable = [
'tipo_id',
'sexo_id',
'mes',
'l',
'm',
's',
'sd_3_negativo',
'sd_2_negativo',
'sd_1_negativo',
'sd_0',
'sd_1',
'sd_2',
'sd_3',
];
protected $hidden = [
'created_at',
'updated_at',
];
public function tipo()
{
return $this->belongsTo(LmsParametroTipo::class);
}
public function sexo()
{
return $this->belongsTo(Sexo::class);
}
}

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Models\Geral;
use App\Models\Model;
class LmsParametroTipo extends Model
{
protected $table = 'geral_lms_parametro_tipo';
protected $fillable = [
'id',
'nome',
];
protected $hidden = [
'created_at',
'updated_at',
];
public function lmsParametros()
{
return $this->hasMany(LmsParametro::class, 'tipo_id');
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Models\Geral;
use App\Models\Model;
class MedidaTempo extends Model
{
protected $table = 'geral_medida_tempo';
protected $fillable = [
'id',
'nome'
];
protected $hidden = [
'created_at',
'updated_at',
];
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Models\Geral;
use App\Models\Model;
class TipoMedidaAltura extends Model
{
protected $table = 'geral_tipo_medida_altura';
protected $fillable = [
'id',
'nome'
];
protected $hidden = [
'created_at',
'updated_at',
];
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Models\Geral;
use App\Models\Model;
class Turno extends Model
{
protected $table = 'geral_turno';
protected $fillable = [
'id',
'nome'
];
protected $hidden = [
'created_at',
'updated_at',
];
}