Phase 2 part 5: find people and verify emails with Hunter.io
Review gets Find people (Domain Search by the departments, seniority and count set in Settings → Lead sources), Find their email (Email Finder for a named person at a company), and Verify (one, or every unchecked address in New). Every call is kept in enrich_runs (schema 9) with its result and credits, and shown on the card. Nothing runs on a schedule. Sources are shown by name (Hunter.io, origami.chat, explee.com). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -298,6 +298,23 @@ CREATE TABLE discovery_runs (
|
||||
notes TEXT NOT NULL DEFAULT '[]' -- JSON: why companies were skipped
|
||||
);
|
||||
CREATE INDEX discovery_runs_by_signal ON discovery_runs (signal_id, id);
|
||||
`,
|
||||
// 9: enrichment with Hunter.io. Every search and verification is kept,
|
||||
// with what it found and the credits it used.
|
||||
`
|
||||
CREATE TABLE enrich_runs (
|
||||
id INTEGER PRIMARY KEY,
|
||||
kind TEXT NOT NULL, -- people (at a company), email (for a person), verify
|
||||
subject TEXT NOT NULL, -- company:3, contact:12
|
||||
at TEXT NOT NULL,
|
||||
found INTEGER NOT NULL DEFAULT 0,
|
||||
added INTEGER NOT NULL DEFAULT 0,
|
||||
credits REAL NOT NULL DEFAULT 0, -- Hunter.io credits used
|
||||
result TEXT NOT NULL DEFAULT '', -- what happened, in words
|
||||
error TEXT NOT NULL DEFAULT ''
|
||||
);
|
||||
CREATE INDEX enrich_runs_by_subject ON enrich_runs (subject, id);
|
||||
CREATE INDEX enrich_runs_by_time ON enrich_runs (at);
|
||||
`,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user