]> git.localhorst.tv Git - alttp.git/blobdiff - database/migrations/2014_10_12_000000_create_users_table.php
add discord auth
[alttp.git] / database / migrations / 2014_10_12_000000_create_users_table.php
index cf6b77661eb5837bebf0a528444a070af7a9d1c0..82f405cac03a86950f67d4d516fc8be30c154e0d 100644 (file)
@@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
 use Illuminate\Database\Schema\Blueprint;
 use Illuminate\Support\Facades\Schema;
 
-return new class extends Migration
+class CreateUsersTable extends Migration
 {
     /**
      * Run the migrations.
@@ -15,11 +15,17 @@ return new class extends Migration
     {
         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();
         });
     }
@@ -33,4 +39,4 @@ return new class extends Migration
     {
         Schema::dropIfExists('users');
     }
-};
+}