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 CreateEspecialidadeProcedimentoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('especialidade_procedimento', function (Blueprint $table) {
$table->id();
$table->foreignId('infraestrutura_id')->constrained('cadastro_infraestrutura');
$table->foreignId('usuario_id')->constrained('cadastro_usuario');
$table->foreignId('procedimento_id')->constrained('sigtap.procedimento');
$table->foreignId('ocupacao_id')->constrained('sigtap.ocupacao');
$table->integer('idade');
$table->integer('quantidade');
MigrationUtil::addCommonFieldsWithSoftDeletes($table);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('especialidade_procedimento');
}
}

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddIsReguladoRegulacaoTipoId extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('cadastro_especialidade', function (Blueprint $table) {
$table->boolean('is_regulado')->default(0);
$table->foreignId('regulacao_tipo_id')->nullable()->constrained('regulacao_tipo');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('cadastro_especialidade', function (Blueprint $table) {
$table->dropForeign(['regulacao_tipo_id']);
$table->dropColumn('regulacao_tipo_id');
$table->dropColumn('is_regulado');
});
}
}