修正心跳封包問題 20250704

This commit is contained in:
allen.yan 2025-07-04 09:33:06 +08:00
parent b68fa3e224
commit 630aab8109

View File

@ -24,6 +24,8 @@ return new class extends Migration
$table->dateTime('started_at')->nullable()->comment('開始時間'); //
$table->dateTime('ended_at')->nullable()->comment('結束時間'); //
$table->timestamps();
// 👇 複合唯一鍵(分店 + 樓層 + 類型 + 包廂名稱)
$table->unique(['branch_id', 'floor', 'type', 'name'], 'unique_room_name_per_branch_floor_type');
});
}