[WIP] Corporate Plan
This commit is contained in:
@@ -15,7 +15,7 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('members', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('user_id')->nullable();
|
||||
$table->foreignId('user_id')->nullable()->index();
|
||||
$table->string('name_prefix')->nullable();
|
||||
$table->string('name');
|
||||
$table->string('name_suffix')->nullable();
|
||||
@@ -25,7 +25,7 @@ return new class extends Migration
|
||||
$table->string('language')->nullable();
|
||||
$table->string('race')->nullable();
|
||||
$table->string('marital_status')->nullable();
|
||||
$table->foreignId('principle_id')->nullable();
|
||||
$table->foreignId('principle_id')->nullable()->index();
|
||||
$table->string('relation_with_principle')->nullable();
|
||||
$table->date('bpjs_class')->nullable();
|
||||
$table->boolean('active')->default(true);
|
||||
|
||||
@@ -15,7 +15,7 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('corporate_divisions', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('corporate_id')->nullable();
|
||||
$table->foreignId('corporate_id')->nullable()->index();
|
||||
$table->string('code');
|
||||
$table->string('name')->nullable();
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ return new class extends Migration
|
||||
Schema::create('plans', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('service_code')->index();
|
||||
$table->string('corporate_plan_id')->index();
|
||||
$table->string('code')->index();
|
||||
$table->string('type')->nullable();
|
||||
$table->dateTime('start')->nullable();
|
||||
@@ -46,9 +47,10 @@ return new class extends Migration
|
||||
$table->tinyInteger('co_share_c_percentage')->default(100)->nullable();
|
||||
$table->decimal('cashless_deductible', 15, 2)->nullable();
|
||||
$table->decimal('reimbursement_deductible', 15, 2)->nullable();
|
||||
$table->decimal('digital_deductible', 15, 2)->nullable();
|
||||
$table->decimal('co_share_m_deductible', 15, 2)->nullable();
|
||||
$table->decimal('co_share_s_eductible', 15, 2)->nullable();
|
||||
$table->decimal('co_share_c_eductible', 15, 2)->nullable();
|
||||
$table->decimal('co_share_s_deductible', 15, 2)->nullable();
|
||||
$table->decimal('co_share_c_deductible', 15, 2)->nullable();
|
||||
$table->string('co_share_deductible_condition')->nullable();
|
||||
$table->string('msc')->nullable();
|
||||
$table->string('genders')->nullable();
|
||||
@@ -59,6 +61,8 @@ return new class extends Migration
|
||||
$table->string('prorate_type')->nullable();
|
||||
$table->string('prorate_lookup')->nullable();
|
||||
$table->string('currency')->nullable();
|
||||
$table->tinyInteger('max_surgery_reinstatement_days')->nullable();
|
||||
$table->tinyInteger('max_surgery_periode_days')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
@@ -30,7 +30,6 @@ return new class extends Migration
|
||||
|
||||
$table->index(['fileable_id', 'fileable_type']);
|
||||
$table->index(['fileable_id', 'fileable_type', 'type']);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('corporate_plans', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('corporate_id')->nullable()->index();
|
||||
$table->string('code')->index();
|
||||
$table->string('name')->nullable();
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
$table->foreignId('created_by')->nullable()->index();
|
||||
$table->foreignId('updated_by')->nullable()->index();
|
||||
$table->foreignId('deleted_by')->nullable()->index();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('corporate_plans');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user