Arrows to move, Enter to openSee all results →

Standards / crm@1

PublishedVersion 1.1.02026-12-02MITDeveloper reference

crm@1 organizations, deals, activities, tickets and survey responses

CRM records opportunities and their stage changes, commitments due, customer touchpoints, support queues and survey feedback. A source can populate one area or several. The unused tables stay empty.

Tables157 requiredFields134no viewsVocabularies10shared word listsDashboards0read it
JSON Schema/spec/crm/1.1.0/crm@1.schema.jsonSQL tables (SQLite)/spec/crm/1.1.0/schema.sqlREADME/spec/crm/1.1.0/README.mdChangelog/spec/crm/CHANGELOG.md

Check a database or a board against it: dashremix spec check. Start a new board on it: dashremix new <id> --schema crm@1. Hash 5643572b798a1451…

Dashboards that read it

No board in the catalog reads it yet.

Tables and fields

Required tables must exist in every database that says it follows crm@1; required fields must be filled. Columns a board adds start with x_.

metarequired table

Metadata for the snapshot.

FieldTypeRequiredMeaning
keyTEXTyese.g. schema, schema_version, as_of, data_hash, source_built_at, base_currency
valueTEXTnotext; as_of is a YYYY-MM-DD date

companiesrequired table

One organization or account as identified by its source.

FieldTypeRequiredMeaning
company_idTEXTyesstable, namespaced organization id, e.g. crm-csv:fictional:company:1
nameTEXTnooptional organization display name; blanked in every shared copy (blank_when_shared)
segmentTEXTnosource or person-assigned segment, e.g. small-team
lifecycleTEXTcompany_lifecyclesnolead, customer, former_customer, other or unknown
renewal_onTEXTdatenonext known renewal date; NULL when unavailable
sourceTEXTyesconnector id, e.g. crm-csv
source_refTEXTyesopaque object id or redacted file label and row
imported_atTEXTinstantyesUTC import instant, excluded from the data hash
confidenceTEXTconfidencenohow a derived classification was set, if any

contactsrequired table

One pseudonymous contact, optionally linked to a primary company. Raw personal fields are excluded.

FieldTypeRequiredMeaning
contact_idTEXTyesnamespaced opaque record id or keyed pseudonym; never a name, email or phone
company_idTEXTnoprimary company if explicitly associated
roleTEXTcontact_rolesnocoarse role, e.g. decision_maker
sourceTEXTyesconnector id, e.g. crm-csv
source_refTEXTyesopaque object id or redacted file label and row
imported_atTEXTinstantyesUTC import instant, excluded from the data hash
confidenceTEXTconfidencenohow an inferred role was set, if any

dealsrequired table

One sale, proposal or grant application. A snapshot may include only the latest stage.

FieldTypeRequiredMeaning
deal_idTEXTyesstable, namespaced opportunity, proposal or application id
company_idTEXTnoknown counterparty or funder, if explicitly associated
contact_idTEXTnoprimary contact id, if available and explicitly associated
kindTEXTdeal_kindsyessale, proposal or grant
labelTEXTnooptional reviewed display label with personal details removed; blanked in every shared copy (blank_when_shared)
pipelineTEXTnosource pipeline or grant program label, e.g. small-business-sales
stageTEXTnocurrent source stage label, preserving the source team's workflow
stateTEXTdeal_statesyesnormalized outcome: open, won, lost or unknown
created_onTEXTdatenorecorded creation date, when known
stage_changed_onTEXTdatenorecorded date the current stage began, when known
expected_close_onTEXTdatenoexpected close or decision date, when known
closed_onTEXTdatenoactual close or decision date, when known
amountREALnoproposed deal value or grant amount requested, in major units
awarded_amountREALnoactual grant award when reported on a won grant; zero is permitted
currencyTEXTcurrencynoISO 4217 currency of both amount fields; required if either amount is present
probabilityREALnosource or explicitly mapped probability of winning, as a decimal from 0 to 1
sourceTEXTyesconnector id, e.g. proposals-csv
source_refTEXTyesopaque object id or redacted file label and row
imported_atTEXTinstantyesUTC import instant, excluded from the data hash
confidenceTEXTconfidencenohow an inferred stage outcome or probability was set, if any

deal_stage_changes

One observed transition into a deal stage. Snapshot-only sources leave this table empty.

FieldTypeRequiredMeaning
change_idTEXTyesstable, namespaced stage history event id
deal_idTEXTyesdeal whose stage changed
from_stageTEXTnoprevious source stage when available
to_stageTEXTyessource stage entered
changed_onTEXTdateyessource-local day the transition occurred
changed_atTEXTinstantnoUTC transition instant, when explicitly known
sourceTEXTyesconnector id, e.g. crm-csv
source_refTEXTyesopaque object id or redacted file label and row
imported_atTEXTinstantyesUTC import instant, excluded from the data hash

deal_milestones

One dated milestone attached to a deal, including recurring report deadlines as separate rows.

FieldTypeRequiredMeaning
milestone_idTEXTyesstable, namespaced milestone id
deal_idTEXTyesdeal this milestone belongs to
kindTEXTmilestone_kindsyesfollow_up, application_deadline, decision, report_due or other
due_onTEXTdateyessource-local deadline
completed_onTEXTdatenorecorded completion date, when known
sourceTEXTyesconnector id, e.g. grants-csv
source_refTEXTyesopaque object id or redacted file label and row
imported_atTEXTinstantyesUTC import instant, excluded from the data hash

activitiesrequired table

One completed customer interaction or recorded touchpoint; free-form content stays in the source.

FieldTypeRequiredMeaning
activity_idTEXTyesstable, namespaced activity id
company_idTEXTnoknown company, if explicitly associated
contact_idTEXTnoknown contact, if explicitly associated
deal_idTEXTnoknown opportunity, if explicitly associated
kindTEXTactivity_kindsyescall, email, meeting, message, task or other
occurred_onTEXTdateyeslocal calendar day the interaction took place
occurred_atTEXTinstantnoUTC instant, when explicitly known
sourceTEXTyesconnector id, e.g. crm-csv
source_refTEXTyesopaque object id or redacted file label and row
imported_atTEXTinstantyesUTC import instant, excluded from the data hash

ticketsrequired table

One support issue or conversation, suitable for backlog and time-to-respond or resolve metrics.

FieldTypeRequiredMeaning
ticket_idTEXTyesstable, namespaced support issue id
company_idTEXTnoknown company, if explicitly associated
contact_idTEXTnoknown requester id, if explicitly associated
statusTEXTticket_statusesyesopen, pending, resolved, closed or unknown
priorityTEXTticket_prioritiesnolow, normal, high or urgent
topicTEXTnocoarse source topic code; keep subject lines and message bodies in the source
created_onTEXTdateyessource-local day the ticket was opened
created_atTEXTinstantnoUTC instant the ticket was opened, when known
first_response_atTEXTinstantnofirst human reply as a UTC instant, when known
resolved_onTEXTdatenosource-local day of final resolution, when known
resolved_atTEXTinstantnofinal resolution as a UTC instant, when known
sourceTEXTyesconnector id, e.g. support-csv
source_refTEXTyesopaque object id or redacted file label and row
imported_atTEXTinstantyesUTC import instant, excluded from the data hash
confidenceTEXTconfidencenohow an inferred classification was set, if any

survey_responsesrequired table

One survey response to an NPS question; anonymous rows and unscored feedback are supported.

FieldTypeRequiredMeaning
response_idTEXTyesstable, namespaced survey response id
survey_keyTEXTyesstable, namespaced survey id, e.g. survey-csv:fictional:s1
company_idTEXTnoknown company, if explicitly associated
contact_idTEXTnooptional opaque respondent id
segmentTEXTnocoarse segment from the response, e.g. small-team
responded_onTEXTdateyessource-local response day
responded_atTEXTinstantnoUTC response instant, when known
nps_scoreINTEGERnointeger 0 to 10 on the NPS question; NULL when unanswered
sourceTEXTyesconnector id, e.g. survey-csv
source_refTEXTyesopaque object id or redacted file label and row
imported_atTEXTinstantyesUTC import instant, excluded from the data hash

survey_response_themes

One approved, short theme label per response and theme, with no raw comment text.

FieldTypeRequiredMeaning
response_idTEXTyesowning response
themeTEXTyeslowercase label using letters, digits, dashes or underscores, e.g. onboarding
sourceTEXTyesconnector id, e.g. survey-csv
source_refTEXTyesopaque tag record key or redacted file label and row
imported_atTEXTinstantyesUTC import instant, excluded from the data hash
confidenceTEXTconfidencenomanual for a reviewed label; NULL for tags already provided by the source

deal_stages

The order of a pipeline's stages (1.1), from the CRM's pipeline settings or the person's own list, so a board can draw a funnel in the team's order and count conversion from each stage to the next. A pipeline without rows here has no known order: boards fall back to the board's own input and never sort stage labels alphabetically as if that were it.

FieldTypeRequiredMeaning
pipelineTEXTyesdeals.pipeline, e.g. direct-sales
stageTEXTyesdeals.stage label exactly as the source writes it, e.g. Negotiation
positionINTEGERyes1 for the first stage, increasing in the pipeline's order; unique within a pipeline
stateTEXTdeal_statesyeswhat reaching the stage means: open, won or lost (vocab deal_states)
probabilityREALnothe pipeline's default win probability for the stage, as a decimal from 0 to 1
sourceTEXTyesconnector id, or inputs for the person's own list
source_refTEXTyesthe settings export or the person's file and row
imported_atTEXTyesUTC import instant, excluded from the data hash

import_issues

A structured account of what the importer skipped or needs reviewed.

FieldTypeRequiredMeaning
issue_idTEXTyesstable id
severityTEXTseveritiesyesinfo, warn or error
kindTEXTyesissue code, e.g. malformed_row
titleTEXTyesshort summary with no personal details
detailTEXTyescontext using redacted references rather than personal details
source_refTEXTnoopaque object id or redacted file label and row
handlingTEXTyeshow the importer handled the issue

annotations

Notes on metrics and pages. Numbers only through {{metric:...}} placeholders.

FieldTypeRequiredMeaning
annotation_idTEXTyesstable id
targetTEXTyesmetric id or page id
kindTEXTyesnote, caveat, flag, decision or open_item
bodyTEXTyesuser note text
authorTEXTnoperson or assistant
source_refTEXTnowhere it came from
created_atTEXTinstantnoUTC instant
data_hashTEXTnohash of the cited values when the note was written
statusTEXTnoactive, stale or retired

overrides

A person-provided correction to a classified field; source facts remain available.

FieldTypeRequiredMeaning
override_idTEXTyesstable id
table_nameTEXTyeswhich CRM fact table is being corrected
row_idTEXTyesprimary id of the record being corrected
fieldTEXTyescolumn the connector allows to be corrected
valueTEXTnoreplacement value written by the person
source_refTEXTnoreference to the person's local correction

metric_registry

The board's named metrics, installed from metrics.sql by the importer.

FieldTypeRequiredMeaning
metric_idTEXTyese.g. pipeline.open_by_stage
versionINTEGERnometric version
unitTEXTnodisplay unit
paramsTEXTnosupported parameter names
descriptionTEXTnothe metric's description
sqlTEXTnoexpanded SQL
testTEXTnothe metric's test description

Vocabularies

Shared word lists, so every board and connector means the same thing by the same word.

activity_kinds6 values

call · email · meeting · message · task · other

company_lifecycles5 values

lead · customer · former_customer · other · unknown

confidence4 values

rule · default · detected · manual

contact_roles4 values

decision_maker · evaluator · requester · other

deal_kinds3 values

sale · proposal · grant

deal_states4 values

open · won · lost · unknown

milestone_kinds5 values

follow_up · application_deadline · decision · report_due · other

severities3 values

info · warn · error

ticket_priorities4 values

low · normal · high · urgent

ticket_statuses5 values

open · pending · resolved · closed · unknown

Changelog

1.1.0 · 2026-12-02

  • Minor. New optional table deal_stages (a pipeline's stages in order, with the outcome each means and a default
  • probability) for Sales Pipeline's funnel, and the check deal_stages_valid at fail (it reads only the new table, so no
  • 1.0 database can fail it). standard.json names the columns every shared copy must blank, `blank_when_shared:
  • [companies.name, deals.label]: each board on crm@1 defines export_redact(db)` blanking them, and the standard's tests
  • run it. Fixture: the direct-sales pipeline's five stages.

1.0.0 · 2026-12-02

  • Introduced the standard for company and contact identifiers, sales and application pipelines, stage history, milestones,
  • activities, support tickets, survey scores and approved theme labels. Added a fictional fixture and conformance checks
  • for links, chronology, values and provenance.

Other standards