feat(auth): auto-join OAuth users to root team

Add an OAuth setting that provisions newly registered users as Root
team members without creating a personal team.
This commit is contained in:
Andras Bacsai
2026-07-02 15:13:39 +02:00
parent c9264dde2e
commit fc32bc6b6c
7 changed files with 110 additions and 6 deletions
@@ -0,0 +1,28 @@
<?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::table('oauth_settings', function (Blueprint $table) {
$table->boolean('auto_join_root_team')->default(false);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('oauth_settings', function (Blueprint $table) {
$table->dropColumn('auto_join_root_team');
});
}
};