fix(workflow): serialize relay state projection

Signed-off-by: tornquist <tornquist@squareup.com>
This commit is contained in:
tornquist
2026-08-21 13:51:55 +00:00
committed by Luke Tornquist
parent 8e204087b8
commit eae24fa1fa
4 changed files with 44 additions and 12 deletions

View File

@@ -270,9 +270,6 @@ CREATE INDEX idx_events_addressable
CREATE INDEX idx_events_parameterized
ON events (community_id, kind, pubkey, d_tag, created_at DESC, id)
WHERE d_tag IS NOT NULL AND deleted_at IS NULL;
CREATE UNIQUE INDEX events_live_workflow_state_coordinate_idx
ON events (community_id, kind, d_tag)
WHERE kind = 30623 AND d_tag IS NOT NULL AND deleted_at IS NULL;
CREATE INDEX idx_events_not_before ON events (community_id, not_before)
WHERE not_before IS NOT NULL AND deleted_at IS NULL AND delivered_at IS NULL;
-- Full-text search. Minimal GIN over the generated tsvector; community scoping