use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
-return new class extends Migration
+class CreateUsersTable extends Migration
{
/**
* Run the migrations.
{
Schema::create('users', function (Blueprint $table) {
$table->id();
- $table->string('name');
+
+ $table->string('username');
+ $table->string('discriminator');
+
$table->string('email')->unique();
- $table->timestamp('email_verified_at')->nullable();
- $table->string('password');
- $table->rememberToken();
+ $table->string('avatar')->nullable();
+
+ $table->boolean('verified');
+ $table->string('locale');
+ $table->boolean('mfa_enabled');
+ $table->string('refresh_token')->nullable();
$table->timestamps();
});
}
{
Schema::dropIfExists('users');
}
-};
+}