baseColumn(); $table->string('email')->unique()->comment('Email'); $table->string('password')->comment('ログインパスワード'); $table->string('kintone_id')->comment('KintoneID'); $helper->index(1, ['email']); $helper->index(2, ['kintone_id']); }); Schema::create('user_histories', function (Blueprint $table) { $helper = new MigrationHelper($table, true); $helper->baseColumn(); $table->string('email')->comment('Email'); $table->string('password')->comment('ログインパスワード'); $table->string('kintone_id')->comment('KintoneID'); $helper->index(1, ['email']); $helper->index(2, ['kintone_id']); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('users'); Schema::dropIfExists('user_histories'); } };