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,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateExameLaboratorialFormulaExameTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('exame_laboratorial_formula_exame', function (Blueprint $table) {
$table->id();
$table->string('nome', 100);
MigrationUtil::addCommonFieldsWithSoftDeletes($table);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('exame_laboratorial_formula_exame');
}
}

View File

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

View File

@@ -0,0 +1,41 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateExameLaboratorialFormulaExameFatorTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('exame_laboratorial_formula_exame_fator', function (Blueprint $table) {
$table->id();
$table->foreignId('formula_exame_id')->constrained('exame_laboratorial_formula_exame')->onDelete('cascade');
$table->string('fator', 50);
$table->foreignId('operacao_id')->constrained('exame_laboratorial_formula_exame_operacao');
$table->smallInteger('tipo');
$table->decimal('valor', 16, 6)->nullable();
$table->boolean('exponenciacao')->default(false);
$table->smallInteger('exponenciacao_tipo')->nullable();
$table->decimal('exponenciacao_valor', 16, 6)->nullable();
$table->smallInteger('ordem');
MigrationUtil::addCommonFieldsWithSoftDeletes($table);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('exame_laboratorial_formula_exame_fator');
}
}