boolean('has_roles')->default(false); $table->unsignedInteger('parent_id')->nullable(); $table->tinyInteger('role_id')->unsigned()->nullable()->index(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::table('users', function (Blueprint $table) { if (Schema::hasColumn('users', 'has_roles')) { $table->dropColumn('has_roles'); } if (Schema::hasColumn('users', 'role_id')) { $table->dropColumn('role_id'); } if (Schema::hasColumn('users', 'parent_id')) { $table->dropColumn('parent_id'); } }); } };