Update migrations for backoffice configuration

This commit is contained in:
Djery-Tom 2021-10-14 17:12:01 +01:00
parent c5a2501865
commit 6429b36f0b
5 changed files with 115 additions and 7 deletions

View File

@ -20,12 +20,12 @@ class CreateNhNetworksConfigsTable extends Migration
$table->decimal('max_number_of_beneficiaries', 1, 0)->default(0)->comment('Nombre dayant droit maximum : un nombre à un chiffre');
$table->decimal('age_limit_of_child_beneficiary', 2, 0)->default(0)->comment('Age limite de layant droit enfant : un nombre à 2 chiffres');
$table->decimal('coverage_limit_per_insured_per_year', 10, 2)->default(0)->comment("Limite de la couverture par assuré par an");
$table->decimal('current_affection_percentage_insurer', 2, 0)->default(0)->comment("Affection courante: % part assureur");
$table->decimal('current_affection_percentage_insured', 2, 0)->default(0)->comment("Affection courante: % part assuré");
$table->decimal('long_term_affection_percentage_insurer', 2, 0)->default(0)->comment("Affection longue durée: % part assureur");
$table->decimal('long_term_affection_percentage_insured', 2, 0)->default(0)->comment("Affection longue durée: % part assuré");
$table->decimal('exoneration_percentage_insurer', 2, 0)->default(0)->comment("Exoneration: % part assureur");
$table->decimal('exoneration_percentage_insured', 2, 0)->default(0)->comment("Exoneration: % part assuré");
$table->decimal('current_affection_percentage_insurer', 3, 0)->default(0)->comment("Affection courante: % part assureur");
$table->decimal('current_affection_percentage_insured', 3, 0)->default(0)->comment("Affection courante: % part assuré");
$table->decimal('long_term_affection_percentage_insurer', 3, 0)->default(0)->comment("Affection longue durée: % part assureur");
$table->decimal('long_term_affection_percentage_insured', 3, 0)->default(0)->comment("Affection longue durée: % part assuré");
$table->decimal('exoneration_percentage_insurer', 3, 0)->default(0)->comment("Exoneration: % part assureur");
$table->decimal('exoneration_percentage_insured', 3, 0)->default(0)->comment("Exoneration: % part assuré");
$table->timestamp('created_at')->useCurrent();
$table->timestamp('updated_at')->useCurrent();
});

View File

@ -18,7 +18,7 @@ class CreateNhYearsPricesGridTable extends Migration
$table->integer('nh_network_config_id');
$table->decimal('min_age', 2, 0)->default(0);
$table->decimal('max_age', 2, 0)->default(0);
$table->decimal('markup_percentage', 2, 0)->default(0)->comment('Pourcentage de majoration');
$table->decimal('markup_percentage', 3, 0)->default(0)->comment('Pourcentage de majoration');
$table->timestamp('created_at')->useCurrent();
$table->timestamp('updated_at')->useCurrent();
});

View File

@ -0,0 +1,40 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateNhValidatingDoctorsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('nh_validating_doctors', function (Blueprint $table) {
$table->id();
$table->integer('nh_network_config_id');
$table->string('firstname')->nullable();
$table->string('lastname');
$table->string('email')->unique();
$table->string('phone')->nullable();
$table->string('password')->nullable();
$table->string('salt')->nullable();
$table->string('token')->unique();
$table->timestamp('created_at')->useCurrent();
$table->timestamp('updated_at')->useCurrent();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('nh_validating_doctors');
}
}

View File

@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateNhProviderClassesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('nh_provider_classes', function (Blueprint $table) {
$table->id();
$table->integer('nh_network_config_id');
$table->string('name')->comment("Nom de la classe de prestataire");
$table->timestamp('created_at')->useCurrent();
$table->timestamp('updated_at')->useCurrent();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('nh_provider_classes');
}
}

View File

@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddNhProviderClassIdInAgentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('agents', function (Blueprint $table) {
//
$table->integer('nh_provider_class_id')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('agents', function (Blueprint $table) {
//
$table->dropColumn(['nh_provider_class_id']);
});
}
}