fixed like action, better dark mode, bottom navigation working, added taskcollection

This commit is contained in:
2025-09-13 00:43:53 +02:00
parent fc1e64fea3
commit 216ee063ff
24 changed files with 2070 additions and 208 deletions

View File

@@ -0,0 +1,35 @@
<?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('event_task_collection', function (Blueprint $table) {
$table->id();
$table->foreignId('event_id')->constrained('events')->onDelete('cascade');
$table->foreignId('task_collection_id')->constrained('task_collections')->onDelete('cascade');
$table->integer('sort_order')->default(0);
$table->timestamps();
// Composite unique index to prevent duplicate assignments
$table->unique(['event_id', 'task_collection_id']);
$table->index(['event_id', 'sort_order']);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('event_task_collection');
}
};