diff --git a/Database/Migrations/2023_11_24_041702_create_subrogasi_jamkrindo_table.php b/Database/Migrations/2023_11_24_041702_create_subrogasi_jamkrindo_table.php new file mode 100644 index 0000000..d746815 --- /dev/null +++ b/Database/Migrations/2023_11_24_041702_create_subrogasi_jamkrindo_table.php @@ -0,0 +1,52 @@ +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'); + } +};