feat(compliance): add content compliance detection across tenant, ops, and clients
Implements the Revision 8/9 compliance design: tenant + ops backends, ops-web content-safety pages, admin-web editor/publish gate integration, desktop publish block surfacing, and supporting migrations / shared types / config plumbing. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
ALTER TABLE generation_tasks
|
||||
ADD COLUMN lease_token VARCHAR(64),
|
||||
ADD COLUMN lease_owner VARCHAR(128),
|
||||
ADD COLUMN lease_expires_at TIMESTAMPTZ,
|
||||
ADD COLUMN attempt_count INT NOT NULL DEFAULT 0,
|
||||
ADD COLUMN last_heartbeat_at TIMESTAMPTZ;
|
||||
ADD COLUMN IF NOT EXISTS lease_token VARCHAR(64),
|
||||
ADD COLUMN IF NOT EXISTS lease_owner VARCHAR(128),
|
||||
ADD COLUMN IF NOT EXISTS lease_expires_at TIMESTAMPTZ,
|
||||
ADD COLUMN IF NOT EXISTS attempt_count INT NOT NULL DEFAULT 0,
|
||||
ADD COLUMN IF NOT EXISTS last_heartbeat_at TIMESTAMPTZ;
|
||||
|
||||
CREATE INDEX idx_generation_tasks_running_lease
|
||||
CREATE INDEX IF NOT EXISTS idx_generation_tasks_running_lease
|
||||
ON generation_tasks(lease_expires_at, id)
|
||||
WHERE status = 'running';
|
||||
|
||||
CREATE INDEX idx_generation_tasks_queued_stale
|
||||
CREATE INDEX IF NOT EXISTS idx_generation_tasks_queued_stale
|
||||
ON generation_tasks(updated_at, id)
|
||||
WHERE status = 'queued';
|
||||
|
||||
Reference in New Issue
Block a user