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,40 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateExameImagemHistoricoAlteracaoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('exame_imagem_historico_alteracao', function (Blueprint $table) {
$table->id();
$table->foreignId('agendamento_id')->constrained('exame_imagem_agendamento');
$table->foreignId('paciente_id')->constrained('cadastro_paciente');
$table->foreignId('agendamento_exame_id')->constrained('exame_imagem_agendamento_exame');
$table->string('resultado', 3000)->nullable();
$table->string('arquivo', 100)->nullable();
$table->string('laudo_nome', 1500);
$table->date('laudo_data')->nullable();
$table->foreignId('usuario_id')->nullable()->constrained('cadastro_usuario');
MigrationUtil::addCommonFields($table);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('exame_imagem_historico_alteracao');
}
}

View File

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