This commit is contained in:
Andras Bacsai
2023-06-12 12:00:01 +02:00
parent b097842d01
commit a97d22b81b
36 changed files with 364 additions and 202 deletions

View File

@@ -15,7 +15,7 @@ return new class extends Migration
$table->id();
$table->foreignId('team_id');
$table->foreignId('user_id');
$table->string('role')->default('readonly');
$table->string('role')->default('member');
$table->timestamps();
$table->unique(['team_id', 'user_id']);

View File

@@ -13,10 +13,12 @@ return new class extends Migration
{
Schema::create('team_invitations', function (Blueprint $table) {
$table->id();
$table->string('uuid')->unique();
$table->foreignId('team_id')->constrained()->cascadeOnDelete();
$table->string('email');
$table->string('role')->default('readonly');
$table->string('link')->nullable();
$table->string('role')->default('member');
$table->string('link');
$table->string('via')->default('link');
$table->timestamps();
$table->unique(['team_id', 'email']);

View File

@@ -16,7 +16,7 @@ class InstanceSettingsSeeder extends Seeder
'id' => 0,
'is_registration_enabled' => true,
'extra_attributes' => [
'smtp_recipients' => 'test@example.com,test2@example.com',
'smtp_test_recipients' => 'test@example.com,test2@example.com',
'smtp_host' => 'coolify-mail',
'smtp_port' => 1025,
'smtp_from_address' => 'hi@localhost.com',