tenant admin startseite schicker gestaltet und super-admin und tenant admin (filament) aufgesplittet.

Es gibt nun task collections und vordefinierte tasks für alle. Onboarding verfeinert und webseite-carousel gefixt (logging später entfernen!)
This commit is contained in:
Codex Agent
2025-10-14 15:17:52 +02:00
parent 64a5411fb9
commit 1a4bdb1fe1
92 changed files with 6027 additions and 515 deletions

View File

@@ -43,7 +43,8 @@ return new class extends Migration
if (!Schema::hasTable('tasks')) {
Schema::create('tasks', function (Blueprint $table) {
$table->id();
$table->foreignId('tenant_id')->constrained()->onDelete('cascade');
$table->foreignId('tenant_id')->nullable()->constrained()->nullOnDelete();
$table->string('slug')->nullable()->unique();
$table->unsignedBigInteger('emotion_id')->nullable();
$table->unsignedBigInteger('event_type_id')->nullable();
$table->json('title');
@@ -75,9 +76,11 @@ return new class extends Migration
if (!Schema::hasTable('task_collections')) {
Schema::create('task_collections', function (Blueprint $table) {
$table->id();
$table->foreignId('tenant_id')->constrained()->onDelete('cascade');
$table->string('name');
$table->text('description')->nullable();
$table->foreignId('tenant_id')->nullable()->constrained()->nullOnDelete();
$table->string('slug')->nullable()->unique();
$table->json('name_translations');
$table->json('description_translations')->nullable();
$table->foreignId('event_type_id')->nullable()->constrained()->nullOnDelete();
$table->boolean('is_default')->default(false);
$table->integer('position')->default(0);
$table->timestamps();