increments('id'); $table->unsignedBigInteger('cust_id')->nullable(); $table->unsignedBigInteger('loan_id')->nullable(); $table->date('emi_date')->nullable(); $table->decimal('interest_due', 10, 2); $table->decimal('principal_due', 10, 2); $table->decimal('emi_amount', 10, 2); $table->decimal('opening_pos', 15, 2); $table->decimal('closing_pos', 15, 2); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('blacksoil_emi_payments'); } }