X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=database%2Fmigrations%2F2014_10_12_000000_create_users_table.php;h=82f405cac03a86950f67d4d516fc8be30c154e0d;hb=07c9bbbb2c6ddde460f48245699f27eaf66b8ac3;hp=cf6b77661eb5837bebf0a528444a070af7a9d1c0;hpb=4bf2dd1dd1f6d31b2ebe299b7495a8b0e259ec77;p=alttp.git diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php index cf6b776..82f405c 100644 --- a/database/migrations/2014_10_12_000000_create_users_table.php +++ b/database/migrations/2014_10_12_000000_create_users_table.php @@ -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'); } -}; +}