feat: google login
CI / 🧪 Tests Laravel (push) Failing after 9s
CI / 🐳 Build & Push Images (push) Has been skipped

This commit is contained in:
2026-08-17 10:06:35 +02:00
parent c0688044e8
commit ddc80956a0
22 changed files with 1886 additions and 6 deletions
@@ -16,7 +16,7 @@ return new class extends Migration
$table->string('name');
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->string('password')->nullable();
$table->string('role')->default('user');
$table->text('bio')->nullable();
$table->unsignedSmallInteger('height')->nullable();
@@ -44,6 +44,18 @@ return new class extends Migration
$table->foreign('suspended_by')->references('id')->on('users')->nullOnDelete();
});
Schema::create('social_accounts', function (Blueprint $table) {
$table->id();
$table->foreignUlid('user_id')->constrained()->cascadeOnDelete();
$table->string('provider', 32);
$table->string('provider_user_id');
$table->text('provider_refresh_token')->nullable();
$table->timestamps();
$table->unique(['provider', 'provider_user_id']);
$table->unique(['user_id', 'provider']);
});
Schema::create('password_reset_tokens', function (Blueprint $table) {
$table->string('email')->primary();
$table->string('token');
@@ -65,6 +77,7 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('social_accounts');
Schema::dropIfExists('users');
Schema::dropIfExists('password_reset_tokens');
Schema::dropIfExists('sessions');