Skip to main content

Accounts

The accounts table is the core entity in PILLAR, representing organizations (school districts, companies, institutions) that are customers or prospects. Contains 100+ fields spanning CRM data, scoring outputs, and Starbridge district intelligence.

Core Fields

FieldTypeSourceDescription
idUUIDSystemUnique identifier (auto-generated)
org_idUUIDSystemOrganization (tenant) this account belongs to
nameVARCHAR(300)CRM SyncAccount name
domainVARCHAR(255)CRM SyncCompany website domain
segmentENUMCRM/ManualEnterprise, Mid-Market, SMB
tierENUMComputedAccount tier: 1, 2, 3 (1 = highest potential)
industryVARCHAR(100)CRM SyncIndustry classification
stateVARCHAR(10)CRM SyncUS state code
territoryVARCHAR(200)Manual/ComputedTerritory assignment
district_typeENUMStarbridgeK-12 District, Charter, Higher Ed, Municipality, State Agency
owner_idUUIDCRM SyncAccount owner (FK to users)
arrDECIMAL(14,2)CRM SyncAnnual Recurring Revenue
student_countINTEGERStarbridgeTotal student enrollment
annual_budgetDECIMAL(14,2)StarbridgeOperating budget amount
health_scoreINTEGERComputedComposite account health (0-100), null for prospects
statusVARCHAR(20)Systemactive, churned, prospect
fiscal_year_endVARCHAR(5)CRM/ManualFiscal year end date (MM-DD format)

Scoring Outputs (Computed)

Updated by the scoring engine every 5 minutes. All scores are 0-100.
FieldTypeRangeDescription
health_scoreINTEGER0-100Composite account health from 8 category scores
priority_scoreINTEGER0-100Account prioritization based on ARR, risk, expansion, market context
risk_scoreINTEGER0-100Churn risk level from 12 risk rules
expansion_propensityINTEGER0-100Likelihood of expansion from 8 variables
whitespace_pctINTEGER0-100Product catalog gap percentage
health_trendJSONB (number[])Last 6 health score data points for sparkline rendering

Starbridge: Identity and Geography

FieldTypeSourceDescription
common_nameVARCHAR(300)StarbridgeCommon/short name
parent_nameVARCHAR(300)StarbridgeParent organization name
parent_buyer_idVARCHAR(50)StarbridgeStarbridge parent buyer ID
buyer_typeVARCHAR(100)StarbridgeBuyer type classification
classificationsJSONB (string[])StarbridgeOrganization classifications
homepage_urlVARCHAR(500)StarbridgeOrganization website
phoneVARCHAR(30)StarbridgeMain phone number
cityVARCHAR(100)StarbridgeCity
countyVARCHAR(100)StarbridgeCounty
zipVARCHAR(20)StarbridgeZIP code
full_addressVARCHAR(500)StarbridgeComplete address
latitudeDECIMAL(10,7)StarbridgeLocation latitude
longitudeDECIMAL(10,7)StarbridgeLocation longitude
populationINTEGERStarbridgePopulation served

Starbridge: Budget and Financial

FieldTypeSourceDescription
total_budgetDECIMAL(14,2)StarbridgeTotal operating budget
tech_budgetDECIMAL(14,2)StarbridgeTechnology budget allocation
budget_sbitaDECIMAL(14,2)StarbridgeSubscription-based IT arrangement spend
budget_urlVARCHAR(500)StarbridgeURL to public budget document
budget_latest_yearINTEGERStarbridgeMost recent budget year
budget_confidenceINTEGERStarbridgeConfidence level in budget data (0-100)
budget_trend_yoyDECIMAL(5,2)StarbridgeYear-over-year budget change percentage
propensity_to_spendVARCHAR(50)StarbridgeSpending propensity category
propensity_to_spend_summaryTEXTStarbridgeAI-generated spending analysis
budget_change_source_urlsJSONB (string[])StarbridgeSource URLs for budget change analysis

Starbridge: Procurement Intelligence

FieldTypeSourceDescription
procurement_complexityINTEGERStarbridgeProcurement difficulty score (0-100, higher = harder)
procurement_summaryTEXTStarbridgeAI-generated procurement navigation guide
coop_agreementsJSONB (string[])StarbridgeActive cooperative purchasing agreements (BuyBoard, TIPS, NASPO, etc.)

Starbridge: Innovation and Adoption

FieldTypeSourceDescription
ai_adoption_scoreINTEGERStarbridgeAI adoption readiness (0-100)
ai_adoption_summaryTEXTStarbridgeAI adoption analysis
startup_friendlinessINTEGERStarbridgeOpenness to startup vendors (0-100)
startup_friendliness_summaryTEXTStarbridgeStartup friendliness analysis
tech_spend_propensityINTEGERStarbridgeTechnology spending propensity (0-100)
strategic_themesJSONB (string[])StarbridgeStrategic priority themes from board documents
historical_spendJSONBStarbridgeHistorical spending data by category/year

Starbridge: K-12 School District Demographics

FieldTypeSourceDescription
school_countINTEGERStarbridgeTotal number of schools
num_schoolsINTEGERStarbridgeNumber of schools (detailed)
elementary_schoolsINTEGERStarbridgeElementary school count
middle_schoolsINTEGERStarbridgeMiddle school count
high_schoolsINTEGERStarbridgeHigh school count
staff_countINTEGERStarbridgeTotal staff
total_staffINTEGERStarbridgeTotal staff (detailed)
fte_teachersDECIMAL(8,1)StarbridgeFull-time equivalent teachers
grade_rangeVARCHAR(20)StarbridgeGrade range offered
lowest_gradeVARCHAR(10)StarbridgeLowest grade offered
highest_gradeVARCHAR(10)StarbridgeHighest grade offered
district_localeVARCHAR(50)StarbridgeUrban/suburban/rural classification
median_household_incomeDECIMAL(12,2)StarbridgeMedian household income in district
free_reduced_lunch_pctDECIMAL(5,2)StarbridgeFree/reduced lunch eligibility percentage
english_learner_pctDECIMAL(5,2)StarbridgeEnglish learner percentage
yoy_enrollment_changeDECIMAL(5,2)StarbridgeYear-over-year enrollment change
enrollment_trendVARCHAR(50)StarbridgeEnrollment trajectory description
sis_providerVARCHAR(100)StarbridgeStudent Information System vendor
lms_providersJSONB (string[])StarbridgeLearning Management System(s)
nces_idVARCHAR(20)StarbridgeNational Center for Education Statistics ID
nces_state_district_idVARCHAR(20)StarbridgeNCES state district ID

Starbridge: Higher Education

FieldTypeSourceDescription
higher_ed_typeVARCHAR(100)StarbridgeInstitution type
higher_ed_fte_enrollmentINTEGERStarbridgeFull-time equivalent enrollment
higher_ed_graduation_rateDECIMAL(5,2)StarbridgeGraduation rate
higher_ed_retention_rateDECIMAL(5,2)StarbridgeRetention rate
higher_ed_grad_enrollmentINTEGERStarbridgeGraduate enrollment
higher_ed_undergrad_enrollmentINTEGERStarbridgeUndergraduate enrollment
higher_ed_controlVARCHAR(50)StarbridgePublic/private control
higher_ed_endowmentDECIMAL(14,2)StarbridgeEndowment amount
higher_ed_systemVARCHAR(200)StarbridgeUniversity system affiliation
ipeds_idVARCHAR(20)StarbridgeIPEDS identifier

Starbridge: Government/Organization

FieldTypeSourceDescription
employee_fteINTEGERStarbridgeFull-time equivalent employees
fiscal_year_start_dateVARCHAR(10)StarbridgeFiscal year start date
census_idVARCHAR(30)StarbridgeUS Census ID

CRM Sync

FieldTypeSourceDescription
crm_external_idVARCHAR(100)CRMExternal CRM record ID
crm_sourceVARCHAR(20)Systemsalesforce, hubspot, dynamics
starbridge_buyer_idVARCHAR(50)StarbridgeStarbridge buyer identifier
starbridge_last_syncedTIMESTAMPSystemLast Starbridge sync timestamp

Indexes

IndexColumnsPurpose
accounts_owner_idxowner_idFilter by account owner
accounts_segment_idxsegmentFilter by segment
accounts_territory_idxterritoryFilter by territory
accounts_nces_idxnces_idLookup by NCES ID
accounts_crm_idxcrm_external_idCRM sync deduplication
accounts_risk_idxrisk_scoreRisk-based sorting
accounts_priority_idxpriority_scorePriority-based sorting

Timestamps

FieldTypeDescription
created_atTIMESTAMPRecord creation time
updated_atTIMESTAMPLast modification time