[WIP] ASO Payment
This commit is contained in:
@@ -17,28 +17,28 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->string('code')->index();
|
||||
$table->foreignId('member_id')->index();
|
||||
$table->foreignId('diagnosis_id')->index()->nullable();
|
||||
$table->string('total_claim')->nullable();
|
||||
// $table->foreignId('diagnosis_id')->index()->nullable();
|
||||
$table->string('currency');
|
||||
$table->string('total_claim')->nullable();
|
||||
$table->foreignId('plan_id')->index()->nullable();
|
||||
$table->foreignId('benefit_id')->index()->nullable();
|
||||
|
||||
$table->string('status');
|
||||
|
||||
$table->dateTime('requested_at')->nullable();
|
||||
$table->unsignedBigInteger('requested_by')->nullable()->index();
|
||||
// $table->dateTime('requested_at')->nullable();
|
||||
// $table->unsignedBigInteger('requested_by')->nullable()->index();
|
||||
|
||||
$table->dateTime('received_at')->nullable();
|
||||
$table->unsignedBigInteger('received_by')->nullable()->index();
|
||||
// $table->dateTime('received_at')->nullable();
|
||||
// $table->unsignedBigInteger('received_by')->nullable()->index();
|
||||
|
||||
$table->dateTime('approved_at')->nullable();
|
||||
$table->unsignedBigInteger('approved_by')->nullable()->index();
|
||||
// $table->dateTime('approved_at')->nullable();
|
||||
// $table->unsignedBigInteger('approved_by')->nullable()->index();
|
||||
|
||||
$table->dateTime('declined')->nullable();
|
||||
$table->unsignedBigInteger('declined_by')->nullable()->index();
|
||||
// $table->dateTime('declined')->nullable();
|
||||
// $table->unsignedBigInteger('declined_by')->nullable()->index();
|
||||
|
||||
$table->dateTime('paid_at')->nullable();
|
||||
$table->unsignedBigInteger('paid_by')->nullable()->index();
|
||||
// $table->dateTime('paid_at')->nullable();
|
||||
// $table->unsignedBigInteger('paid_by')->nullable()->index();
|
||||
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
<?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('status_histories', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->morphs('statusable');
|
||||
$table->string('status');
|
||||
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
$table->unsignedBigInteger('created_by')->nullable()->index();
|
||||
$table->unsignedBigInteger('updated_by')->nullable()->index();
|
||||
$table->unsignedBigInteger('deleted_by')->nullable()->index();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('status_histories');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,40 @@
|
||||
<?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('claim_diagnosis', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('claim_id');
|
||||
$table->string('type')->comment('primary, secondary');
|
||||
$table->foreignId('diagnosis_id')->nullable();
|
||||
$table->string('note')->nullable();
|
||||
$table->text('description')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
$table->unsignedBigInteger('created_by')->nullable()->index();
|
||||
$table->unsignedBigInteger('updated_by')->nullable()->index();
|
||||
$table->unsignedBigInteger('deleted_by')->nullable()->index();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('claim_diagnosis');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user