increments('id'); $table->string('email')->unique(); $table->string('password'); $table->unsignedInteger('account_id')->nullable(); $table->unsignedInteger('m_level')->nullable(); $table->unsignedInteger('m_sponsor')->nullable(); $table->boolean('confirmed')->default(false); $table->string('confirmation_code', 30)->index()->nullable(); $table->timestamp('confirmation_date')->nullable(); $table->dateTime('confirmation_code_to')->nullable(); $table->unsignedTinyInteger('confirmation_code_remider')->default(0); $table->timestamp('release_account')->nullable(); $table->boolean('active')->default(false); $table->timestamp('active_date')->nullable(); $table->dateTime('agreement')->nullable(); $table->boolean('admin')->default(false); $table->boolean('wizard')->default(false); $table->boolean('blocked')->default(false); $table->char('lang', 2)->index(); $table->text('notes')->nullable(); $table->rememberToken(); $table->timestamp('last_login')->nullable(); $table->timestamp('payment_account')->nullable(); $table->timestamp('payment_shop')->nullable(); $table->timestamps(); $table->softDeletes(); $table->foreign('m_sponsor') ->references('id') ->on('users'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('users'); } }