mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
finish oauth provider + docker service wait for MySQL
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user