feat(ui): star servers and resources for quick access on the dashboard

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andras Bacsai
2026-11-06 18:16:25 +01:00
co-authored by Claude Opus 5.5
parent cab5ae9903
commit c648f4ec6a
28 changed files with 383 additions and 12 deletions
@@ -0,0 +1,26 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('stars', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->constrained()->cascadeOnDelete();
$table->morphs('starrable');
$table->unsignedInteger('position')->default(0);
$table->timestamps();
$table->unique(['user_id', 'starrable_type', 'starrable_id']);
});
}
public function down(): void
{
Schema::dropIfExists('stars');
}
};