fix: preserve Chatwoot message visibility and identity

This commit is contained in:
plx
2026-08-14 14:08:23 +00:00
parent 475ff15b9b
commit c4d55d37ed
10 changed files with 531 additions and 71 deletions

View File

@@ -0,0 +1,4 @@
-- Canonical message identity for replay-safe Chatwoot ingestion.
CREATE UNIQUE INDEX IF NOT EXISTS ux_messages_source_event
ON messages(source_system, source_event_id)
WHERE source_event_id IS NOT NULL;