Skip to main content

Opportunities

The opportunities table represents active and historical deals. Each opportunity carries scoring outputs for pipeline hygiene and forecast confidence, plus Starbridge procurement intelligence.

Core Fields

FieldTypeSourceDescription
idUUIDSystemUnique identifier
account_idUUIDSystemParent account (FK to accounts)
nameVARCHAR(300)CRM SyncDeal name
amountDECIMAL(14,2)CRM SyncDeal value
stageENUMCRM SyncDiscovery, Evaluation, Proposal, Negotiation, Closed Won, Closed Lost
probabilityINTEGERCRM SyncWin probability (0-100)
close_dateTIMESTAMPCRM SyncExpected close date
forecast_categoryENUMCRM/ManualCommit, Best Case, Upside, Pipeline, Omitted
opportunity_typeENUMCRM/Manualnet_new_business, renewal, expansion, cross_sell
owner_idUUIDCRM SyncDeal owner (FK to users)
created_dateTIMESTAMPCRM SyncWhen the deal was created

Scoring Outputs

FieldTypeRangeDescription
hygiene_scoreINTEGER0-100Pipeline hygiene (higher = more problems)
confidence_scoreINTEGER0-100Forecast confidence (higher = more confident)
days_in_stageINTEGER0+Days in current stage
push_countINTEGER0+Number of close date pushes
contact_countINTEGER0+Contacts associated with the deal
has_economic_buyerBOOLEANWhether an economic buyer is identified
has_next_stepBOOLEANWhether a next step is defined
next_stepTEXTFree-text next step description
last_meeting_dateTIMESTAMPMost recent meeting date
competitorVARCHAR(200)Named competitor on the deal

Starbridge Enrichment

FieldTypeSourceDescription
procurement_complexityINTEGERStarbridgeProcurement difficulty for this deal (0-100)
cooperative_pathwayVARCHAR(300)StarbridgeAvailable coop purchasing pathway
budget_statusVARCHAR(200)StarbridgeBudget availability status
strategic_fitTEXTStarbridgeStrategic alignment assessment
rfp_statusVARCHAR(300)StarbridgeActive RFP/solicitation status
grant_matchTEXTStarbridgeGrant funding match analysis

CRM Sync

FieldTypeDescription
crm_external_idVARCHAR(100)External CRM record ID
updated_atTIMESTAMPLast modification time

Indexes

IndexColumnsPurpose
opp_account_idxaccount_idFilter by account
opp_owner_idxowner_idFilter by owner
opp_stage_idxstageFilter by stage
opp_close_date_idxclose_dateSort by close date
opp_confidence_idxconfidence_scoreSort by confidence
opp_type_idxopportunity_typeFilter by deal type