uuid('id')->primary()->index(); $table->enum('role', ['admin', 'user'])->default('user'); $table->string('email')->unique()->index(); $table->timestamp('email_verified_at')->nullable(); $table->string('oauth_provider')->nullable(); $table->string('password')->nullable(); $table->text('two_factor_secret')->nullable(); $table->text('two_factor_recovery_codes')->nullable(); $table->rememberToken(); $table->timestamps(); $table->charset = 'utf8mb4'; $table->collation = 'utf8mb4_unicode_ci'; }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('users'); } }