調整 room 資料表 20250704
This commit is contained in:
parent
2adbac4ab4
commit
ed1f32a5c3
@ -24,6 +24,8 @@ return new class extends Migration
|
|||||||
$table->dateTime('started_at')->nullable()->comment('開始時間'); //
|
$table->dateTime('started_at')->nullable()->comment('開始時間'); //
|
||||||
$table->dateTime('ended_at')->nullable()->comment('結束時間'); //
|
$table->dateTime('ended_at')->nullable()->comment('結束時間'); //
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
// 👇 複合唯一鍵(分店 + 樓層 + 類型 + 包廂名稱)
|
||||||
|
$table->unique(['branch_id', 'floor', 'type', 'name'], 'unique_room_name_per_branch_floor_type');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user