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,39 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTransportePacienteParametrizacaoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('transporte_paciente_parametrizacao', function (Blueprint $table) {
$table->id();
$table->integer('faltas')->nullable();
$table->integer('periodo')->nullable();
$table->boolean('lista_viagem_agendada')->nullable();
$table->boolean('horario_saida')->nullable();
$table->boolean('faturamento')->nullable();
$table->boolean('auxilio_alimentacao')->nullable();
$table->boolean('agendar_transporte_jornada')->nullable();
MigrationUtil::addCommonFields($table);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('transporte_paciente_parametrizacao');
}
}

View File

@@ -0,0 +1,37 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTransportePacienteParametrizacaoFaturamentoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('transporte_paciente_parametrizacao_faturamento', function (Blueprint $table) {
$table->id();
$table->foreignId('unidade_id')->constrained('cadastro_unidade');
$table->foreignId('infraestrutura_id')->constrained('cadastro_infraestrutura');
$table->foreignId('usuario_id')->constrained('cadastro_usuario');
$table->foreignId('ocupacao_id')->constrained('sigtap.ocupacao');
MigrationUtil::addCommonFields($table);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('transporte_paciente_parametrizacao_faturamento');
}
}

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddMensagemProtocoloToTransportePacienteParametrizacaoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('transporte_paciente_parametrizacao', function (Blueprint $table) {
$table->text('mensagem_protocolo', 500)->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('transporte_paciente_paramtrizacao', function (Blueprint $table) {
$table->dropColumn(['mensagem_protocolo']);
});
}
}

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class DropListaViagemAgendadaToTransportePacienteParametrizacaoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('transporte_paciente_parametrizacao', function (Blueprint $table) {
$table->dropColumn('lista_viagem_agendada');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('transporte_paciente_parametrizacao', function (Blueprint $table) {
$table->boolean('lista_viagem_agendada')->nullable();
});
}
}

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddColumnsToTransportePacienteParametrizacaoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('transporte_paciente_parametrizacao', function (Blueprint $table) {
$table->boolean('campos_obrigatorios')->nullable();
$table->boolean('comprovante_acompanhante')->nullable();
$table->boolean('dados_acompanhante')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('transporte_paciente_parametrizacao', function (Blueprint $table) {
$table->dropColumn('campos_obrigatorios');
$table->dropColumn('comprovante_acompanhante');
$table->dropColumn('dados_acompanhante');
});
}
}

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AlterCamposObrigatoriosOnTransportePacienteParametrizacaoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('transporte_paciente_parametrizacao', function (Blueprint $table) {
$table->renameColumn('campos_obrigatorios', 'veiculo');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('transporte_paciente_parametrizacao', function(Blueprint $table) {
$table->renameColumn('veiculo', 'campos_obrigatorios');
});
}
}

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddCampoLivreToTransportePacienteParametrizacaoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('transporte_paciente_parametrizacao', function (Blueprint $table) {
$table->boolean('campo_livre')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('transporte_paciente_parametrizacao', function (Blueprint $table) {
$table->dropColumn('campo_livre');
});
}
}

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddExibirObservacaoPacienteToTransportePacienteParametrizacaoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('transporte_paciente_parametrizacao', function (Blueprint $table) {
$table->boolean('exibir_observacao_paciente')->default(true);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('transporte_paciente_parametrizacao', function (Blueprint $table) {
$table->dropColumn('exibir_observacao_paciente');
});
}
}

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddExibirObservacaoTransporteToTransportePacienteParametrizacaoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('transporte_paciente_parametrizacao', function (Blueprint $table) {
$table->boolean('exibir_observacao_transporte')->default(true);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('transporte_paciente_parametrizacao', function (Blueprint $table) {
$table->dropColumn('exibir_observacao_transporte');
});
}
}

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AlterExibirObservacaoPacienteNullableToTransportePacienteParametrizacaoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('transporte_paciente_parametrizacao', function (Blueprint $table) {
$table->boolean('exibir_observacao_paciente')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('transporte_paciente_parametrizacao', function (Blueprint $table) {
$table->boolean('exibir_observacao_paciente')->change();
});
}
}