migrations and models adjusted

This commit is contained in:
2026-08-15 13:35:46 +02:00
parent 6152a0a122
commit c5fd3f9d79
16 changed files with 157 additions and 459 deletions
@@ -17,8 +17,9 @@ return new class extends Migration
$table->foreignId('user_id')->nullable()->constrained()->nullOnDelete();
$table->string('name', 50);
$table->boolean('is_moderator')->default(false);
$table->timestamp('last_seen_at')->nullable();
$table->timestamps();
$table->unique(['room_id', 'user_id']);
$table->unique(['room_id', 'name']);
});
}