調整 room 資料表 20250704

This commit is contained in:
allen.yan 2025-07-04 09:34:12 +08:00
parent 2adbac4ab4
commit ed1f32a5c3

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');
});
}