feat(api-watermark): 水印接口优化

This commit is contained in:
R524809
2026-09-04 15:58:53 +08:00
parent 009082d0f4
commit f635359216
8 changed files with 7350 additions and 5436 deletions
@@ -0,0 +1,9 @@
-- 上传意图到达终态后,Worker 需要可靠记录临时对象是否已从对象存储清理。
SET search_path TO atlas, public;
ALTER TABLE media_upload_intents
ADD COLUMN object_cleaned_at TIMESTAMPTZ;
CREATE INDEX ix_media_upload_intents_cleanup
ON media_upload_intents (workspace_id, status, created_at)
WHERE status IN ('failed', 'expired') AND object_cleaned_at IS NULL;