string('id')->primary(); $table->foreignUuid('user_id')->constrained()->onDelete('cascade'); $table->string('type'); $table->json('data')->nullable(); $table->timestamp('expires_at')->nullable(); $table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP')); }); } /** * Reverse the migrations. */ public function down(): void { Schema::create('email_updates', function (Blueprint $table) { $table->id(); $table->foreignUuid('user_id')->constrained()->onDelete('cascade'); $table->string('email'); $table->string('token')->unique(); $table->timestamps(); }); Schema::create('password_reset_tokens', function (Blueprint $table) { $table->string('email')->primary(); $table->string('token'); $table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP')); }); Schema::create('login_tokens', function (Blueprint $table) { $table->id(); $table->string('email'); $table->string('token')->unique(); $table->string('intended_url')->nullable(); $table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP')); }); } };