Skip to main content

Revenue Economics

The org_metrics table stores org-level financial and operational metrics on a periodic basis (monthly or quarterly). These power the Revenue Economics dashboard, forecast accuracy tracking, and ECON scoring rules.

Org Metrics (org_metrics)

FieldTypeDescription
idUUIDUnique identifier
org_idUUIDOrganization tenant
periodVARCHAR(20)Period identifier (e.g., “2025-Q2”, “2025-03”)
period_typeVARCHAR(20)quarterly or monthly

Revenue Metrics

FieldTypeDescription
arrDECIMAL(14,2)Current Annual Recurring Revenue
arr_beginningDECIMAL(14,2)ARR at period start
new_business_arrDECIMAL(14,2)New logo ARR added
expansion_arrDECIMAL(14,2)Expansion/upsell ARR
contraction_arrDECIMAL(14,2)Downsell ARR
churn_arrDECIMAL(14,2)Churned ARR

Efficiency / P&L Metrics

FieldTypeDescription
total_revenueDECIMAL(14,2)Total revenue
total_cogsDECIMAL(14,2)Cost of goods sold
gross_profitDECIMAL(14,2)Gross profit
total_opexDECIMAL(14,2)Total operating expenses
ebitdaDECIMAL(14,2)EBITDA
total_sales_marketing_spendDECIMAL(14,2)Total S&M spend
total_new_customersINTEGERNew customers acquired

Headcount

FieldTypeDescription
total_employeesINTEGERTotal employee count
sales_headcountINTEGERSales team size
cs_headcountINTEGERCustomer success team size

Sales Metrics

FieldTypeDescription
new_business_cycle_days_medianINTEGERMedian new business cycle length
expansion_cycle_days_medianINTEGERMedian expansion cycle length
pipeline_totalDECIMAL(14,2)Total pipeline value
pipeline_coverage_ratioDECIMAL(6,2)Pipeline / quota ratio

Quota and Attainment

FieldTypeDescription
quota_attainment_jsonJSONBPer-rep quota attainment data

Cash and Unit Economics

FieldTypeDescription
monthly_burnDECIMAL(14,2)Monthly cash burn rate
cash_balanceDECIMAL(14,2)Current cash balance
ltv_monthsINTEGERCustomer lifetime in months

Products (products)

Product catalog for whitespace and adoption analysis.
FieldTypeDescription
idUUIDUnique identifier
org_idUUIDOrganization tenant
nameVARCHAR(200)Product name
categoryVARCHAR(100)Product category
annual_priceDECIMAL(14,2)Annual list price
arr_per_studentDECIMAL(8,4)ARR per student pricing
descriptionTEXTProduct description
discount_floor_pctDECIMAL(5,2)Minimum allowed discount
discount_max_pctDECIMAL(5,2)Maximum allowed discount (default 15%)
min_deal_sizeDECIMAL(14,2)Minimum deal size
is_activeBOOLEANWhether product is currently offered

Account Products (account_products)

Per-account product adoption tracking.
FieldTypeDescription
idUUIDUnique identifier
account_idUUIDAccount (FK to accounts)
product_idUUIDProduct (FK to products)
statusVARCHAR(20)active, churned, pending
start_dateTIMESTAMPProduct activation date
seats_licensedINTEGERLicensed seat count
seats_activeINTEGERActive seats
adoption_pctINTEGERAdoption percentage (0-100)
contracted_arrDECIMAL(14,2)Contracted ARR for this product
discount_pctDECIMAL(5,2)Applied discount percentage

Forecasting Tables

Forecast Overrides (forecast_overrides)

Rep-level forecast assessments with PILLAR’s 5-band categorization.
FieldTypeDescription
opportunity_idUUIDDeal being assessed
owner_idUUIDRep making the assessment
periodVARCHAR(20)Forecast period (e.g., “2025-Q2”)
pillar_categoryENUMWon, Commit, Probable, Upside, Projection
amountDECIMAL(14,2)Forecast amount
weighted_amountDECIMAL(14,2)Probability-weighted amount
probability_pctINTEGERCategory probability: Won/Commit=100, Probable=50, Upside=25, Projection=15
next_stepTEXTDated deal narrative
next_step_dateTIMESTAMPNext step target date
exec_sponsor_engagedBOOLEANExecutive sponsor engagement
confidence_rationaleTEXTWhy this category was chosen
product_mixJSONB (string[])Products in the deal

Forecast Snapshots (forecast_snapshots)

Point-in-time captures for forecast accuracy tracking.
FieldTypeDescription
org_idUUIDOrganization
periodVARCHAR(20)Target period
snapshot_dateTIMESTAMPWhen snapshot was taken
snapshot_labelVARCHAR(100)Label (e.g., “Week 6 of Q2”)
won_amountDECIMALWon total
commit_amountDECIMALCommit total
probable_amountDECIMALProbable total
upside_amountDECIMALUpside total
projection_amountDECIMALProjection total
weighted_totalDECIMALProbability-weighted total
low_bandDECIMALWon + Commit (100%)
medium_bandDECIMAL+ Probable (50%)
high_bandDECIMAL+ Upside (25%)
moonshot_bandDECIMAL+ Projection (15%)
rep_breakdownJSONBPer-rep data
deal_detailsJSONBPer-deal data

Pipeline Cohorts (pipeline_cohorts)

Vintage-based pipeline analysis by quarter-created and quarter-closed.
FieldTypeDescription
org_idUUIDOrganization
cohort_periodVARCHAR(20)Quarter created (e.g., “2024-Q3”)
close_periodVARCHAR(20)Quarter closed (null if still open)
deal_countINTEGERTotal deals in cohort
total_arrDECIMALTotal ARR
won_count / won_arrINTEGER / DECIMALWon deals
lost_count / lost_arrINTEGER / DECIMALLost deals
open_count / open_arrINTEGER / DECIMALStill open deals
win_rate_countDECIMALWin rate by count
win_rate_arrDECIMALWin rate by ARR
avg_cycle_daysINTEGERAverage sales cycle length