increments('id'); $table->integer('application_id')->nullable(); $table->integer('credit_id')->nullable(); $table->string('AccountType')->nullable(); $table->string('Institution')->nullable(); $table->string('OwnershipType')->nullable(); $table->string('ApprovedAmount')->nullable(); $table->string('Balance')->default('0'); $table->string('InterestRate')->nullable(); $table->integer('RepaymentTenure')->nullable(); $table->string('InstallmentAmount')->nullable(); $table->tinyInteger('cc_loan')->nullable(); $table->integer('isOpened')->nullable(); $table->timestamp('DateOpened')->nullable(); $table->timestamp('DateClosed')->nullable(); $table->timestamp('LastPaymentDate')->nullable(); $table->integer('LastPayment')->nullable(); $table->integer('PastDueAmount')->nullable(); $table->text('dpd')->nullable(); $table->tinyInteger('applicant_type')->nullable(); $table->tinyInteger('updated_by')->nullable(); $table->tinyInteger('created_by')->nullable(); $table->softDeletes()->nullable(); $table->timestamps(); $table->integer('deleted_by')->nullable(); $table->string('InstallmentAmountOLD')->default(0); $table->string('InstallmentAmountNEW')->default(0); $table->timestamp('ReportedDate')->nullable(); $table->tinyInteger('is_close_date_updated')->default(0); $table->text('reason_info')->nullable(); $table->index(['AccountType', 'deleted_at', 'application_id'], 'pre_elig_foir_ind1'); $table->index(['application_id', 'applicant_type', 'deleted_at'], 'pre_elig_foir_ind2'); $table->index(['application_id', 'OwnershipType', 'deleted_at'], 'pre_elig_foir_ind3'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('pre_eligibility_foir'); } }