Arrows to move, Enter to openSee all results →

Standards / travel@1

PublishedVersion 1.1.02026-11-29MITDeveloper reference

travel@1 days present in each country

One row of stays is one contiguous stretch in one country. The importer expands stays into stay_days (one row per calendar day from the first to the last day, gaps included) so metrics count days without date maths. thresholds holds the reference rules a board draws (rolling windows, calendar years, the US substantial presence test, Schengen 90/180); they are configurable examples, not advice.

Tables105 requiredFields77no viewsVocabularies3shared word listsDashboards1read it
JSON Schema/spec/travel/1.1.0/travel@1.schema.jsonSQL tables (SQLite)/spec/travel/1.1.0/schema.sqlREADME/spec/travel/1.1.0/README.mdChangelog/spec/travel/CHANGELOG.md

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

Dashboards that read it

Tables and fields

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

metarequired table

Key/value facts about this database. Required: schema, schema_version, as_of, data_hash. 1.1 recommends source_built_at (ISO 8601 UTC instant the importer wrote it), checked at warn.

FieldTypeRequiredMeaning
keyTEXTno
valueTEXTno

countriesrequired table

FieldTypeRequiredMeaning
country_codeTEXTcountrynoISO 3166-1 alpha-2, or X-prefixed region code (XE = Europe, unspecified)
nameTEXTyesdisplay name
source_labelTEXTyeslabel as written in the source sheet
regionTEXTyesSouth America, Central America, North America, Europe, Asia ...
schengenINTEGERyes1 = Schengen area, 2 = assumed Schengen (region label only)
is_regionINTEGERyes1 = the sheet names a region, not a country
is_homeINTEGERyescitizenship country (inputs.yaml)
color_idxINTEGERyesstable index into the chart palette tokens

staysrequired table

FieldTypeRequiredMeaning
stay_idTEXTnoS + start date + country
start_dateTEXTdateyesISO date, first day counted
end_dateTEXTdateyesISO date, exclusive (the next stay's start)
nightsINTEGERyesend_date - start_date
country_codeTEXTcountryyes
sheet_yearINTEGERnothe sheet's Year column
sheet_daysINTEGERnothe sheet's Days column (DATEDIF)
source_tabTEXTyessource location: the sheet tab, or the file name for a CSV
source_rowINTEGERyes1-based row in the source tab, or the line in the file
adjustedTEXTnoimporter adjustment applied (e.g. year_end_fill), else NULL
cityTEXTno1.1: optional place within the country, as written in the source (e.g. Lisbon)
sourceTEXTno1.1: connector id that wrote the row: stays-csv | google-sheet | calendar-ics | manual
source_refTEXTno1.1: where in the source: file:line (data/stays.csv:12) or tab!row (Travel Log!A12)
imported_atTEXTinstantno1.1: ISO 8601 UTC instant of the import (left out of meta.data_hash)

stay_daysrequired table

FieldTypeRequiredMeaning
dayTEXTdatenoevery calendar day from the first to the last stay, gaps included
country_codeTEXTnoNULL = not covered by any stay
stay_idTEXTno
yearINTEGERyes
monthTEXTmonthyesYYYY-MM
doyINTEGERyesday of year, 1-based

thresholdsrequired table

FieldTypeRequiredMeaning
rule_idTEXTno
labelTEXTyes
kindTEXTthreshold_kindsyes
country_codeTEXTnoNULL for schengen (uses countries.schengen)
window_daysINTEGERnorolling / schengen window length
limit_daysINTEGERyesreference line: days allowed before the rule is met
min_daysINTEGERnous_spt: minimum current-year days
sourceTEXTyes'sheet' (the workbook itself) or 'reference' (general rule, not in the sheet)
source_noteTEXTno
ordINTEGERyes

plan_slots

FieldTypeRequiredMeaning
tabTEXTyes'Travel Plan' or 'Travel Plan - EU'
yearINTEGERyes
slotINTEGERyes1..48: four slots per month (about a week each)
monthINTEGERyes
locationTEXTnoplan-grid label, e.g. City A, City B, Global
country_codeTEXTnomapped through inputs.yaml plan_locations (NULL for Global)
noteTEXTnothe note row under the grid (events), on the slot where it is written

sheet_summaries

FieldTypeRequiredMeaning
tabTEXTyes
yearINTEGERyes
measureTEXTyescalendar_year | prev_365 | prev_187 | plan_days
labelTEXTyescountry or plan location as written
valueREALno
source_cellTEXTyes

data_issues

FieldTypeRequiredMeaning
issue_idTEXTno
severityTEXTseveritiesyes
kindTEXTyes
titleTEXTyes
detailTEXTyes
source_tabTEXTno
source_cellTEXTno
handlingTEXTyeswhat the importer did about it

annotations

Notes on metrics and pages (platform table). Numbers only through {{metric:...}} placeholders. 1.1 adds finance@2's columns as optional ones; the key stays (target, body) until travel@2.

FieldTypeRequiredMeaning
targetTEXTnometric id or page id
bodyTEXTnothe note text
annotation_idTEXTno1.1: stable id
kindTEXTno1.1: note | caveat | flag | decision | open_item
authorTEXTno1.1: person or assistant
source_refTEXTno1.1: where it came from
created_atTEXTno1.1: ISO 8601 instant
data_hashTEXTno1.1: hash of the cited metric values when written (stale when they change)
statusTEXTno1.1: active | stale | retired

metric_registry

FieldTypeRequiredMeaning
metric_idTEXTno
versionINTEGERno
unitTEXTno
paramsTEXTno
descriptionTEXTno
sqlTEXTno
testTEXTno

Vocabularies

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

countries230 values

AD · AE · AF · AG · AI · AL · AM · AO · AQ · AR · AS · AT · AU · AW …

severities3 values

info · warn · error

threshold_kinds4 values

rolling · calendar_year · us_spt · schengen

Changelog

1.1.0 (2026-11-29), minor

  • stays: optional city; provenance source, source_ref, imported_at (README "Provenance").
  • annotations: finance@2's columns added as optional ones (annotation_id, kind, author, source_ref, created_at, data_hash, status); the key stays (target, body) until travel@2.
  • meta.source_built_at recommended.
  • vocab/countries.csv: ISO codes, names, regions, Schengen membership and aliases (an optional reference vocabulary).
  • New conformance checks at warn: stays_provenance, source_built_at_present.
  • Fixtures carry the new columns and one annotation. No migration: the board database is rebuilt on every import.

1.0.0 (2026-11-29)

  • First published version: the schema Days Abroad shipped with, unchanged (stays, stay_days, countries, thresholds, plan_slots, sheet_summaries, data_issues, annotations, metric_registry).
  • Conformance checks moved here from Days Abroad's validate: nights consistent, no overlaps, contiguous calendar, day fields, known countries, complete thresholds.

Other standards