fix(allowlist): 唤醒名单可查看、可取消或恢复唤醒权限,换主人时清空

This commit is contained in:
Lemon-miaow committed 2026-09-27 02:55:30 +08:00
1 parent d807fd5887
commit 4a26bf4ca0
23 files changed
+1190 -32

No files matched your search

@@ -0,0 +1,6 @@
-- An owner can take a player's right to wake the server away (PUT
-- /servers/{name}/allowlist/{uuid}). The row stays with revoked_at set instead of
-- being deleted, because a deleted row comes straight back on the player's next
-- join (RecordJoin appends ON CONFLICT DO NOTHING) and the owner's choice would
-- last only until then. Both wake gates read revoked_at IS NULL.
ALTER TABLE server_allowlist ADD COLUMN revoked_at timestamptz;