-- PR-4 Email Ingest — documents.source_external_id 컬럼 추가 -- 외부 source 의 dedup key. email source 에서는 always non-null (ingest 코드 책임). -- Message-ID 정규화 또는 imap:{folder}:{uidvalidity}:{uid} fallback. -- 다른 source_channel 에서는 NULL 허용 (별 의미 부여 시 nullable→unique 검토). ALTER TABLE documents ADD COLUMN IF NOT EXISTS source_external_id TEXT;