Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-24 03:31:45 +00:00
co-authored by renee-png
parent 4d3a9ac369
commit 4d87143beb
2 changed files with 28 additions and 0 deletions
@@ -0,0 +1,10 @@
ALTER TABLE public.incoming_emails
ADD COLUMN IF NOT EXISTS in_reply_to text,
ADD COLUMN IF NOT EXISTS email_references text[] NOT NULL DEFAULT '{}',
ADD COLUMN IF NOT EXISTS match_status text NOT NULL DEFAULT 'unmatched',
ADD COLUMN IF NOT EXISTS match_suggestions jsonb NOT NULL DEFAULT '[]'::jsonb,
ADD COLUMN IF NOT EXISTS match_reason text,
ADD COLUMN IF NOT EXISTS matched_at timestamptz;
CREATE INDEX IF NOT EXISTS incoming_emails_match_status_idx ON public.incoming_emails(match_status);
CREATE INDEX IF NOT EXISTS incoming_emails_in_reply_to_idx ON public.incoming_emails(in_reply_to);