feat(prospecting): add complete prospecting module for lead discovery and scoring
Some checks failed
Some checks failed
Migrates scanning pipeline from marketing-.lu-domains app into Orion module. Supports digital (domain scan) and offline (manual capture) lead channels with enrichment, scoring, campaign management, and interaction tracking. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
27
app/modules/prospecting/schemas/score.py
Normal file
27
app/modules/prospecting/schemas/score.py
Normal file
@@ -0,0 +1,27 @@
|
||||
# app/modules/prospecting/schemas/score.py
|
||||
"""Pydantic schemas for opportunity scoring."""
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class ProspectScoreResponse(BaseModel):
|
||||
"""Schema for prospect score response."""
|
||||
|
||||
id: int
|
||||
prospect_id: int
|
||||
score: int
|
||||
technical_health_score: int
|
||||
modernity_score: int
|
||||
business_value_score: int
|
||||
engagement_score: int
|
||||
reason_flags: list[str] = []
|
||||
score_breakdown: dict[str, int] | None = None
|
||||
lead_tier: str | None = None
|
||||
notes: str | None = None
|
||||
created_at: datetime
|
||||
updated_at: datetime
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
Reference in New Issue
Block a user