add table subrogasi jamkrindo

This commit is contained in:
Daeng Deni Mardaeni 2023-11-24 16:26:57 +07:00
parent 514cc48e9a
commit efc92f494e

View File

@ -0,0 +1,52 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('subrogasi_jamkrindo', function (Blueprint $table) {
$table->id();
$table->integer('nomor_pinjaman', false, true);
$table->integer('nomor_debitur', false, true);
$table->string('nama_debitur');
$table->string('cabang');
$table->string('nama_cabang');
$table->integer('nomor_rekening', false, true);
$table->string('nama_rekening');
$table->double('plafond', 15, 2);
$table->integer('tenor', false, true);
$table->date('tanggal_pengajuan_klaim');
$table->double('piutang_subrogasi', 15, 2);
$table->double('total_bayar_subrogasi', 15, 2);
$table->double('sisa_piutang_subrogasi', 15, 2);
$table->boolean('is_lunas_subrogasi')->default(false);
$table->string('keterangan')->nullable();
$table->boolean('status')->default(true)->nullable();
$table->timestamps();
$table->timestamp('authorized_at')->nullable();
$table->char('authorized_status', 1)->nullable();
$table->softDeletes();
$table->unsignedBigInteger('created_by')->nullable();
$table->unsignedBigInteger('updated_by')->nullable();
$table->unsignedBigInteger('deleted_by')->nullable();
$table->unsignedBigInteger('authorized_by')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('subrogasi_jamkrindo');
}
};