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

View File

@@ -0,0 +1,77 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTransportePacienteDestino extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('transporte_paciente_destino', function (Blueprint $table) {
$table->id();
$table->string('descricao_destino', 100);
$table->string('numero_telefone_fax', 11)->nullable();
$table->string('numero_cnpj', 14)->nullable();
$table->string('numero_cpf', 11)->nullable();
$table->string('nome_logradouro', 50)->nullable();
$table->string('numero_logradouro', 5)->nullable();
$table->string('nome_complemento', 40)->nullable();
$table->string('nome_bairro', 30)->nullable();
$table->integer('numero_cep')->nullable();
$table->string('numero_telefone_comercial', 11)->nullable();
$table->string('observacao', 200)->nullable();
$table->boolean('bloqueado')->nullable();
$table->boolean('tipo_prestador')->nullable();
$table->integer('distancia')->nullable();
$table
->foreignId('destino_tipo_id')
->nullable()
->constrained('transporte_paciente_destino_tipo');
$table
->foreignId('cadastro_logradouro_tipo_id')
->nullable()
->constrained('cadastro_logradouro_tipo');
$table
->foreignId('documento_tipo_id')
->nullable()
->constrained('geral_documento_tipo');
$table
->foreignId('usuario_id')
->nullable()
->constrained('cadastro_usuario');
$table
->foreignId('estado_id')
->nullable()
->constrained('intranet.cadastro_estado');
$table
->foreignId('municipio_id')
->nullable()
->constrained('intranet.cadastro_municipio');
MigrationUtil::addCommonFields($table);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('transporte_paciente_destino');
}
}