increments('id'); $table->integer('user_id')->nullable(); $table->float('amount')->nullable(); $table->enum('transaction_type', ['deposit'=> 'Deposit', 'bonus'=>'Bonus', 'penality'=>'Penality', 'withdrawal'=>'Withdrawal','commissions'=>'Commissions', 'release_deposit'=>'Release Deposit', 'withdraw_pending'=>'Withdraw Pending', 'intrest_earned'=>'Intrest Earned'])->nullable(); $table->text('description')->nullable(); $table->string('payment_thro', 255)->nullable(); $table->string('transaction_id', 255)->nullable(); $table->smallInteger('status')->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('histories'); } }