diff --git a/database/migrations/2024_08_12_022025_create_branches_table.php b/database/migrations/2024_08_12_022025_create_branches_table.php deleted file mode 100644 index bf4e9a8..0000000 --- a/database/migrations/2024_08_12_022025_create_branches_table.php +++ /dev/null @@ -1,39 +0,0 @@ -id(); - $table->string('code', 9)->unique(); - $table->string('name'); - $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('branches'); - } - }; diff --git a/database/migrations/2024_08_23_075121_create_permohonan_jaminan_table.php b/database/migrations/2024_08_23_075121_create_permohonan_jaminan_table.php deleted file mode 100644 index 4bd2ead..0000000 --- a/database/migrations/2024_08_23_075121_create_permohonan_jaminan_table.php +++ /dev/null @@ -1,37 +0,0 @@ -id(); - $table->foreignIdFor(Permohonan::class)->constrained('permohonan'); - $table->foreignIdFor(DokumenJaminan::class)->contrained('dokumen_jaminan'); - $table->boolean('status')->default(true)->nullable(); - $table->timestamps(); - $table->softDeletes(); - - $table->unsignedBigInteger('created_by')->nullable(); - $table->unsignedBigInteger('updated_by')->nullable(); - $table->unsignedBigInteger('deleted_by')->nullable(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('permohonan_jaminan'); - } -}; diff --git a/database/migrations/2024_08_27_083927_add_jenis_legalitas_jaminan_id_to_jenis_jaminan.php b/database/migrations/2024_08_27_083927_add_jenis_legalitas_jaminan_id_to_jenis_jaminan.php deleted file mode 100644 index 2d76120..0000000 --- a/database/migrations/2024_08_27_083927_add_jenis_legalitas_jaminan_id_to_jenis_jaminan.php +++ /dev/null @@ -1,28 +0,0 @@ -text('jenis_legalitas_jaminan_id')->nullable()->after('id')->comment('fk dari table jenis_legalitas_jaminan'); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::table('jenis_jaminan', function (Blueprint $table) { - $table->dropColumn('jenis_legalitas_jaminan_id'); - }); - } -}; diff --git a/database/migrations/2024_09_05_030400_create_dokumen_jaminan_table.php b/database/migrations/2024_09_05_030400_create_dokumen_jaminan_table.php deleted file mode 100644 index 2e663c9..0000000 --- a/database/migrations/2024_09_05_030400_create_dokumen_jaminan_table.php +++ /dev/null @@ -1,52 +0,0 @@ -id(); - $table->foreignIdFor(Debiture::class)->constrained('debitures')->onDelete('cascade'); - $table->foreignIdFor(Permohonan::class)->nullable()->constrained('permohonan')->onDelete('cascade'); - $table->foreignIdFor(JenisJaminan::class)->constrained('jenis_jaminan')->onDelete('cascade'); - $table->foreignIdFor(PemilikJaminan::class)->constrained('pemilik_jaminan')->onDelete('cascade'); - $table->string('province_code')->nullable()->index(); - $table->string('city_code')->nullable()->index(); - $table->string('district_code')->nullable()->index(); - $table->string('village_code')->nullable()->index(); - $table->string('postal_code', 5)->nullable(); - $table->text('address')->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('dokumen_jaminan'); - } -};