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,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateExameLaboratorialJornadaTipoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('exame_laboratorial_jornada_tipo', function (Blueprint $table) {
MigrationUtil::idWithoutIncrements($table);
$table->string('nome', 10);
MigrationUtil::addCommonFields($table, ['staticData' => true]);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('exame_laboratorial_jornada_tipo');
}
}

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateExameLaboratorialJornadaSemanaTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('exame_laboratorial_jornada_semana', function (Blueprint $table) {
MigrationUtil::idWithoutIncrements($table);
$table->string('nome', 10);
MigrationUtil::addCommonFields($table, ['staticData' => true]);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('exame_laboratorial_jornada_semana');
}
}

View File

@@ -0,0 +1,41 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateExameLaboratorialJornadaTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('exame_laboratorial_jornada', function (Blueprint $table) {
$table->id();
$table->foreignId('unidade_id')->constrained('cadastro_unidade');
$table->foreignId('infraestrutura_id')->constrained('cadastro_infraestrutura');
$table->foreignId('semana_id')->constrained('exame_laboratorial_jornada_semana');
$table->foreignId('tipo_id')->constrained('exame_laboratorial_jornada_tipo');
$table->bigInteger('vagas');
$table->date('data');
$table->time('hora_inicial');
$table->time('hora_fim');
$table->bigInteger('tempo_atendimento');
MigrationUtil::addCommonFieldsWithSoftDeletes($table);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('exame_laboratorial_jornada');
}
}

View File

@@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AlterExameLaboratorialJornadaAddVagasApp extends Migration
{
public function up()
{
Schema::table('exame_laboratorial_jornada', function (Blueprint $table) {
$table->unsignedBigInteger('vagas_app')->nullable()->after('vagas');
$table->foreignId('laboratorio_prestador_infraestrutura_id')
->nullable()
->after('vagas_app')
->constrained('cadastro_infraestrutura');
});
}
public function down()
{
Schema::table('exame_laboratorial_jornada', function (Blueprint $table) {
$table->dropForeign(['laboratorio_prestador_infraestrutura_id']);
$table->dropColumn(['vagas_app', 'laboratorio_prestador_infraestrutura_id']);
});
}
}