finish oauth provider + docker service wait for MySQL

This commit is contained in:
xiaomlove
2025-05-01 14:18:30 +07:00
parent cc89e8aa59
commit af33e5cba7
26 changed files with 450 additions and 41 deletions

View File

@@ -23,6 +23,8 @@ return new class extends Migration
$table->string('id_claim');
$table->string('username_claim')->nullable();
$table->string('email_claim')->nullable();
$table->string('level_claim')->nullable();
$table->string('level_limit')->nullable();
$table->boolean('enabled');
$table->integer('priority');
$table->timestamps();

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('social_accounts', function (Blueprint $table) {
$table->id();
$table->bigInteger('user_id');
$table->bigInteger('provider_id');
$table->string('provider_user_id');
$table->string('provider_email');
$table->string('provider_username');
$table->timestamps();
$table->unique(['user_id', 'provider_id']);
$table->unique(['provider_id', 'provider_user_id']);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('social_accounts');
}
};