This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateIntegracaoRiraParametrizacaoTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('integracao_rira_parametrizacao', function (Blueprint $table) {
|
||||
|
||||
$table->id();
|
||||
$table->string('senha', 100)->nullable();
|
||||
$table->string('identificador_solicitante', 100)->nullable();
|
||||
$table->char('cns_solicitante', 15);
|
||||
|
||||
MigrationUtil::addCommonFields($table);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('integracao_rira_parametrizacao');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateIntegracaoRiraDocumentoTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('integracao_rira_documento', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('regulacao_solicitacao_item_id')->constrained('regulacao_solicitacao_item');
|
||||
$table->string('identificador', 100);
|
||||
|
||||
MigrationUtil::addCommonFields($table, ['staticData' => true]);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('integracao_rira_documento');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateIntegracaoRiraDocumentoEnvioTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('integracao_rira_documento_envio', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('documento_id')->constrained('integracao_rira_documento')->onDelete('cascade');
|
||||
$table->string('url_rnds', 200)->nullable();
|
||||
$table->string('identificador_rnds', 100)->nullable();
|
||||
$table->foreignId('regulacao_status_enviado_id')->constrained('regulacao_status');
|
||||
$table->string('identificador_solicitante', 100);
|
||||
$table->char('cns_solicitante', 15);
|
||||
$table->timestamp('data_hora_envio');
|
||||
$table->json('request')->nullable();
|
||||
$table->json('response')->nullable();
|
||||
|
||||
MigrationUtil::addCommonFields($table, ['staticData' => true]);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('integracao_rira_documento_envio');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user