feat(worker): watermark versioning with atomic history regeneration

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-20 17:53:44 +08:00
parent 6723a0ce88
commit 243b2f8721
34 changed files with 3057 additions and 78 deletions
@@ -0,0 +1,8 @@
-- P4a Task 3:albums_ov 水印副本位(album.updated 载荷投影,语义见
-- packages/contracts/src/watermark.ts)——watermarkEnabled=true 时 ov 公开侧
-- 浏览键切换为模式键 `variants/{photoId}/{watermarkConfigVersion}/watermark.jpg`
-- (确定性推导,无逐照片同步;对象存在性由 cn 侧「有效版本」保证)。
-- 两列均非 VARCHAR,无校对手决关注(沿用库级 utf8mb4_0900_bin 表默认)。
-- AlterTable
ALTER TABLE `albums_ov` ADD COLUMN `watermarkConfigVersion` INTEGER NOT NULL DEFAULT 0,
ADD COLUMN `watermarkEnabled` BOOLEAN NOT NULL DEFAULT false;