metarequired table
Metadata for the snapshot.
| Field | Type | Required | Meaning |
|---|---|---|---|
key | TEXT | yes | e.g. schema, schema_version, as_of, data_hash, source_built_at, base_currency |
value | TEXT | no | text; as_of is a YYYY-MM-DD date |
Standards / crm@1
crm@1 organizations, deals, activities, tickets and survey responsesCRM 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.
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…
No board in the catalog reads it yet.
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 tableMetadata for the snapshot.
| Field | Type | Required | Meaning |
|---|---|---|---|
key | TEXT | yes | e.g. schema, schema_version, as_of, data_hash, source_built_at, base_currency |
value | TEXT | no | text; as_of is a YYYY-MM-DD date |
companiesrequired tableOne organization or account as identified by its source.
| Field | Type | Required | Meaning |
|---|---|---|---|
company_id | TEXT | yes | stable, namespaced organization id, e.g. crm-csv:fictional:company:1 |
name | TEXT | no | optional organization display name; blanked in every shared copy (blank_when_shared) |
segment | TEXT | no | source or person-assigned segment, e.g. small-team |
lifecycle | TEXTcompany_lifecycles | no | lead, customer, former_customer, other or unknown |
renewal_on | TEXTdate | no | next known renewal date; NULL when unavailable |
source | TEXT | yes | connector id, e.g. crm-csv |
source_ref | TEXT | yes | opaque object id or redacted file label and row |
imported_at | TEXTinstant | yes | UTC import instant, excluded from the data hash |
confidence | TEXTconfidence | no | how a derived classification was set, if any |
contactsrequired tableOne pseudonymous contact, optionally linked to a primary company. Raw personal fields are excluded.
| Field | Type | Required | Meaning |
|---|---|---|---|
contact_id | TEXT | yes | namespaced opaque record id or keyed pseudonym; never a name, email or phone |
company_id | TEXT | no | primary company if explicitly associated |
role | TEXTcontact_roles | no | coarse role, e.g. decision_maker |
source | TEXT | yes | connector id, e.g. crm-csv |
source_ref | TEXT | yes | opaque object id or redacted file label and row |
imported_at | TEXTinstant | yes | UTC import instant, excluded from the data hash |
confidence | TEXTconfidence | no | how an inferred role was set, if any |
dealsrequired tableOne sale, proposal or grant application. A snapshot may include only the latest stage.
| Field | Type | Required | Meaning |
|---|---|---|---|
deal_id | TEXT | yes | stable, namespaced opportunity, proposal or application id |
company_id | TEXT | no | known counterparty or funder, if explicitly associated |
contact_id | TEXT | no | primary contact id, if available and explicitly associated |
kind | TEXTdeal_kinds | yes | sale, proposal or grant |
label | TEXT | no | optional reviewed display label with personal details removed; blanked in every shared copy (blank_when_shared) |
pipeline | TEXT | no | source pipeline or grant program label, e.g. small-business-sales |
stage | TEXT | no | current source stage label, preserving the source team's workflow |
state | TEXTdeal_states | yes | normalized outcome: open, won, lost or unknown |
created_on | TEXTdate | no | recorded creation date, when known |
stage_changed_on | TEXTdate | no | recorded date the current stage began, when known |
expected_close_on | TEXTdate | no | expected close or decision date, when known |
closed_on | TEXTdate | no | actual close or decision date, when known |
amount | REAL | no | proposed deal value or grant amount requested, in major units |
awarded_amount | REAL | no | actual grant award when reported on a won grant; zero is permitted |
currency | TEXTcurrency | no | ISO 4217 currency of both amount fields; required if either amount is present |
probability | REAL | no | source or explicitly mapped probability of winning, as a decimal from 0 to 1 |
source | TEXT | yes | connector id, e.g. proposals-csv |
source_ref | TEXT | yes | opaque object id or redacted file label and row |
imported_at | TEXTinstant | yes | UTC import instant, excluded from the data hash |
confidence | TEXTconfidence | no | how an inferred stage outcome or probability was set, if any |
deal_stage_changesOne observed transition into a deal stage. Snapshot-only sources leave this table empty.
| Field | Type | Required | Meaning |
|---|---|---|---|
change_id | TEXT | yes | stable, namespaced stage history event id |
deal_id | TEXT | yes | deal whose stage changed |
from_stage | TEXT | no | previous source stage when available |
to_stage | TEXT | yes | source stage entered |
changed_on | TEXTdate | yes | source-local day the transition occurred |
changed_at | TEXTinstant | no | UTC transition instant, when explicitly known |
source | TEXT | yes | connector id, e.g. crm-csv |
source_ref | TEXT | yes | opaque object id or redacted file label and row |
imported_at | TEXTinstant | yes | UTC import instant, excluded from the data hash |
deal_milestonesOne dated milestone attached to a deal, including recurring report deadlines as separate rows.
| Field | Type | Required | Meaning |
|---|---|---|---|
milestone_id | TEXT | yes | stable, namespaced milestone id |
deal_id | TEXT | yes | deal this milestone belongs to |
kind | TEXTmilestone_kinds | yes | follow_up, application_deadline, decision, report_due or other |
due_on | TEXTdate | yes | source-local deadline |
completed_on | TEXTdate | no | recorded completion date, when known |
source | TEXT | yes | connector id, e.g. grants-csv |
source_ref | TEXT | yes | opaque object id or redacted file label and row |
imported_at | TEXTinstant | yes | UTC import instant, excluded from the data hash |
activitiesrequired tableOne completed customer interaction or recorded touchpoint; free-form content stays in the source.
| Field | Type | Required | Meaning |
|---|---|---|---|
activity_id | TEXT | yes | stable, namespaced activity id |
company_id | TEXT | no | known company, if explicitly associated |
contact_id | TEXT | no | known contact, if explicitly associated |
deal_id | TEXT | no | known opportunity, if explicitly associated |
kind | TEXTactivity_kinds | yes | call, email, meeting, message, task or other |
occurred_on | TEXTdate | yes | local calendar day the interaction took place |
occurred_at | TEXTinstant | no | UTC instant, when explicitly known |
source | TEXT | yes | connector id, e.g. crm-csv |
source_ref | TEXT | yes | opaque object id or redacted file label and row |
imported_at | TEXTinstant | yes | UTC import instant, excluded from the data hash |
ticketsrequired tableOne support issue or conversation, suitable for backlog and time-to-respond or resolve metrics.
| Field | Type | Required | Meaning |
|---|---|---|---|
ticket_id | TEXT | yes | stable, namespaced support issue id |
company_id | TEXT | no | known company, if explicitly associated |
contact_id | TEXT | no | known requester id, if explicitly associated |
status | TEXTticket_statuses | yes | open, pending, resolved, closed or unknown |
priority | TEXTticket_priorities | no | low, normal, high or urgent |
topic | TEXT | no | coarse source topic code; keep subject lines and message bodies in the source |
created_on | TEXTdate | yes | source-local day the ticket was opened |
created_at | TEXTinstant | no | UTC instant the ticket was opened, when known |
first_response_at | TEXTinstant | no | first human reply as a UTC instant, when known |
resolved_on | TEXTdate | no | source-local day of final resolution, when known |
resolved_at | TEXTinstant | no | final resolution as a UTC instant, when known |
source | TEXT | yes | connector id, e.g. support-csv |
source_ref | TEXT | yes | opaque object id or redacted file label and row |
imported_at | TEXTinstant | yes | UTC import instant, excluded from the data hash |
confidence | TEXTconfidence | no | how an inferred classification was set, if any |
survey_responsesrequired tableOne survey response to an NPS question; anonymous rows and unscored feedback are supported.
| Field | Type | Required | Meaning |
|---|---|---|---|
response_id | TEXT | yes | stable, namespaced survey response id |
survey_key | TEXT | yes | stable, namespaced survey id, e.g. survey-csv:fictional:s1 |
company_id | TEXT | no | known company, if explicitly associated |
contact_id | TEXT | no | optional opaque respondent id |
segment | TEXT | no | coarse segment from the response, e.g. small-team |
responded_on | TEXTdate | yes | source-local response day |
responded_at | TEXTinstant | no | UTC response instant, when known |
nps_score | INTEGER | no | integer 0 to 10 on the NPS question; NULL when unanswered |
source | TEXT | yes | connector id, e.g. survey-csv |
source_ref | TEXT | yes | opaque object id or redacted file label and row |
imported_at | TEXTinstant | yes | UTC import instant, excluded from the data hash |
survey_response_themesOne approved, short theme label per response and theme, with no raw comment text.
| Field | Type | Required | Meaning |
|---|---|---|---|
response_id | TEXT | yes | owning response |
theme | TEXT | yes | lowercase label using letters, digits, dashes or underscores, e.g. onboarding |
source | TEXT | yes | connector id, e.g. survey-csv |
source_ref | TEXT | yes | opaque tag record key or redacted file label and row |
imported_at | TEXTinstant | yes | UTC import instant, excluded from the data hash |
confidence | TEXTconfidence | no | manual for a reviewed label; NULL for tags already provided by the source |
deal_stagesThe 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.
| Field | Type | Required | Meaning |
|---|---|---|---|
pipeline | TEXT | yes | deals.pipeline, e.g. direct-sales |
stage | TEXT | yes | deals.stage label exactly as the source writes it, e.g. Negotiation |
position | INTEGER | yes | 1 for the first stage, increasing in the pipeline's order; unique within a pipeline |
state | TEXTdeal_states | yes | what reaching the stage means: open, won or lost (vocab deal_states) |
probability | REAL | no | the pipeline's default win probability for the stage, as a decimal from 0 to 1 |
source | TEXT | yes | connector id, or inputs for the person's own list |
source_ref | TEXT | yes | the settings export or the person's file and row |
imported_at | TEXT | yes | UTC import instant, excluded from the data hash |
import_issuesA structured account of what the importer skipped or needs reviewed.
| Field | Type | Required | Meaning |
|---|---|---|---|
issue_id | TEXT | yes | stable id |
severity | TEXTseverities | yes | info, warn or error |
kind | TEXT | yes | issue code, e.g. malformed_row |
title | TEXT | yes | short summary with no personal details |
detail | TEXT | yes | context using redacted references rather than personal details |
source_ref | TEXT | no | opaque object id or redacted file label and row |
handling | TEXT | yes | how the importer handled the issue |
annotationsNotes on metrics and pages. Numbers only through {{metric:...}} placeholders.
| Field | Type | Required | Meaning |
|---|---|---|---|
annotation_id | TEXT | yes | stable id |
target | TEXT | yes | metric id or page id |
kind | TEXT | yes | note, caveat, flag, decision or open_item |
body | TEXT | yes | user note text |
author | TEXT | no | person or assistant |
source_ref | TEXT | no | where it came from |
created_at | TEXTinstant | no | UTC instant |
data_hash | TEXT | no | hash of the cited values when the note was written |
status | TEXT | no | active, stale or retired |
overridesA person-provided correction to a classified field; source facts remain available.
| Field | Type | Required | Meaning |
|---|---|---|---|
override_id | TEXT | yes | stable id |
table_name | TEXT | yes | which CRM fact table is being corrected |
row_id | TEXT | yes | primary id of the record being corrected |
field | TEXT | yes | column the connector allows to be corrected |
value | TEXT | no | replacement value written by the person |
source_ref | TEXT | no | reference to the person's local correction |
metric_registryThe board's named metrics, installed from metrics.sql by the importer.
| Field | Type | Required | Meaning |
|---|---|---|---|
metric_id | TEXT | yes | e.g. pipeline.open_by_stage |
version | INTEGER | no | metric version |
unit | TEXT | no | display unit |
params | TEXT | no | supported parameter names |
description | TEXT | no | the metric's description |
sql | TEXT | no | expanded SQL |
test | TEXT | no | the metric's test description |
Shared word lists, so every board and connector means the same thing by the same word.
activity_kinds6 valuescall · email · meeting · message · task · other
company_lifecycles5 valueslead · customer · former_customer · other · unknown
confidence4 valuesrule · default · detected · manual
contact_roles4 valuesdecision_maker · evaluator · requester · other
deal_kinds3 valuessale · proposal · grant
deal_states4 valuesopen · won · lost · unknown
milestone_kinds5 valuesfollow_up · application_deadline · decision · report_due · other
severities3 valuesinfo · warn · error
ticket_priorities4 valueslow · normal · high · urgent
ticket_statuses5 valuesopen · pending · resolved · closed · unknown
deal_stages (a pipeline's stages in order, with the outcome each means and a defaultdeal_stages_valid at fail (it reads only the new table, so nostandard.json names the columns every shared copy must blank, `blank_when_shared:: each board on crm@1 defines export_redact(db)` blanking them, and the standard's testsbilling@1Billing: customers, subscriptions over time, invoices and their lines, payments, refunds and MRRcalendar@1Calendar: events and tracked timecode@1Code: pull requests, reviews, issues, deployments, releases, commits, CI, uptime, dependencies and sprintscommerce@1Commerce: orders, refunds and tax, ticket sales, point-of-sale summaries, supplier costs and partnershipsfinance@2Finance: accounts, balances, transactions, budgets and recurring chargeshealth@1Health: daily body metrics, sleep sessions with stages, workouts, food eaten and body measurements from wearables, scales and health appslegal@1Legal records: entities, contracts, obligations and renewalslibrary@1Library: the books you read, are reading and want to readpeople@1People: team staffing, hiring, time off and scored surveysrental@1Rental: short-term rental listings, reservations, payouts, calendar and coststracker@1Tracker: habits, mood, activities and journal entries you log by handtravel@1Travel: days present in each countryvehicle@1Vehicle: odometer, fuel and charging, and maintenance recordsweb@1Web: search, site traffic, creator audiences, content and campaign performance