Arrows to move, Enter to openSee all results →

Standards / calendar@1

PublishedVersion 1.1.02026-12-02MITDeveloper reference

calendar@1 events and tracked time

One row of events is one occurrence on one calendar: a repeating meeting is expanded by the connector inside its import window, so a weekly 1:1 over 16 weeks is 16 rows. event_days cuts every occurrence at the local midnights of the person's time zone, so a metric adds up a day, a week or an hour of the day without expanding a repeat or doing time-zone arithmetic. Time Audit reads it; a week planner and Days Abroad's flight mapper will (wave 2).

Tables104 requiredFields101no viewsVocabularies9shared word listsDashboards5read it
JSON Schema/spec/calendar/1.1.0/calendar@1.schema.jsonSQL tables (SQLite)/spec/calendar/1.1.0/schema.sqlREADME/spec/calendar/1.1.0/README.mdChangelog/spec/calendar/CHANGELOG.md

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

Dashboards that read it

Tables and fields

Required tables must exist in every database that says it follows calendar@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, timezone (the person's IANA time zone: event_days are cut at its midnights). Recommended (checked at warn): source_built_at (ISO 8601 UTC), window_start and window_end (YYYY-MM-DD, end exclusive: the days the connector expanded and imported), week_start (mon..sun), work_days (bit mask Mon=1 .. Sun=64), work_start_s and work_end_s (seconds after local midnight).

FieldTypeRequiredMeaning
keyTEXTno
valueTEXTno

calendarsrequired table

The calendars the events came from (one per exported .ics, or per member of a Google export zip).

FieldTypeRequiredMeaning
calendar_idTEXTyesfrom the calendar's name (or the person's own id), never from file order, e.g. work
nameTEXTyesdisplay name (X-WR-CALNAME or the person's name for it)
owner_selfINTEGERno1 = the person's own calendar, 0 = someone else's they subscribe to or share
kindTEXTcalendar_kindsnowork | personal | shared | subscribed (vocab calendar_kinds)
color_idxINTEGERnostable index into the chart palette tokens
tzTEXTnothe calendar's default zone as the export states it (X-WR-TIMEZONE), information only
sourceTEXTsourcesnoconnector id: ics-google | ics-apple | ics-outlook | ics (vocab sources)
source_refTEXTnothe file (and zip member) it came from
imported_atTEXTinstantnoISO 8601 UTC instant of the import (left out of meta.data_hash)

categories

The person's categories: each says what kind of time it is.

FieldTypeRequiredMeaning
categoryTEXTyesthe person's name for it, e.g. 1:1s, Customer calls, Focus
kindTEXTcategory_kindsyesmeeting | focus | personal | other | time_off (vocab category_kinds)
color_idxINTEGERnostable index into the chart palette tokens
ordINTEGERnodisplay order (1 = first)
descriptionTEXTnowhy it matters, in the person's words

event_rules

The rules that sorted events into categories (from the person's rules file), first match wins.

FieldTypeRequiredMeaning
rule_idTEXTyesthe rule's id: its own id: or a hash of what it matches (never its position)
ordINTEGERyesorder in the file (1 = tried first)
matchTEXTyesJSON of what it matches: title / location (patterns), calendar, min_people, max_people, organizer, recurring, online, all_day
categoryTEXTnothe category it gives (NULL with ignore)
focusINTEGERno1 = the events it matches are focus time the person booked
ignoreINTEGERno1 = the events it matches are not counted (excluded = ignored)
source_refTEXTnowhere the rule is, e.g. data/rules.yaml:rules[3]

eventsrequired table

One occurrence of an event inside the import window. Every occurrence is kept, also the ones that are not busy time; `excluded` says why one does not count (NULL = it counts).

FieldTypeRequiredMeaning
event_idTEXTyesfirst 16 hex of sha1(calendar_id|UID|RECURRENCE-ID|start); RECURRENCE-ID and start as written in recurrence_id and start_utc (all-day: the start date)
calendar_idTEXTyesthe calendar it is on
uidTEXTnothe source's UID (several calendars can hold the same UID)
recurrence_idTEXTnothe instance's original start as a UTC instant (all-day: its date); NULL for an event that does not repeat
start_utcTEXTinstantyesISO 8601 UTC instant it starts; all-day: local midnight of its first day in meta.timezone
end_utcTEXTinstantyesISO 8601 UTC instant it ends (exclusive); all-day: local midnight after its last day
tzTEXTyesthe zone its times were written in: an IANA name, UTC, or the source's TZID when the file defined a zone with no IANA name; floating and all-day times use meta.timezone
all_dayINTEGERyes1 = an all-day (date-only) event
titleTEXTnoSUMMARY
locationTEXTnoLOCATION as written (may be a room or an address)
is_onlineINTEGERno1 = a video-call link in the location, URL, description or conference fields (the link itself is not kept)
organizer_selfINTEGERno1 = the person organised it, 0 = someone else, NULL = unknown (no address for the person, or no organizer)
attendees_nINTEGERnopeople on the invitation (attendees plus the organizer, rooms and resources left out); 0 = nobody listed
declined_nINTEGERnoinvitees other than the person who declined this occurrence
responseTEXTresponsesnothe person's answer: accepted | tentative | declined | needs_action | none (vocab responses)
statusTEXTstatusesnoconfirmed | tentative | cancelled (vocab statuses)
transparencyTEXTtransparencynobusy | free (vocab transparency): free = shows as available
recurringINTEGERyes1 = an occurrence of a repeating event (including a moved one)
series_idTEXTnofirst 16 hex of sha1(calendar_id|series UID) for repeating events: the UID without Google's "this and following" split suffix (_R20261015T170000), so a series edited part-way stays one series
categoryTEXTnothe person's category (categories.category), from the first rule that matched or the defaults
focusINTEGERno1 = focus time the person booked (a rule with focus: true, or a category of kind focus)
rule_idTEXTnothe rule that set the category; NULL = a default
duplicate_ofTEXTnoevent_id of the copy that counts when the same instance (UID, recurrence, start) is on several calendars
excludedTEXTexcluded_reasonsnoNULL = counts as busy time; else the first reason that applies, in this order: cancelled | declined | duplicate | all_day | free | ignored (vocab excluded_reasons)
sourceTEXTsourcesnoconnector id (vocab sources)
source_refTEXTnofile (and zip member) and the line where the VEVENT is
imported_atTEXTinstantnoISO 8601 UTC instant of the import (left out of meta.data_hash)
confidenceTEXTnorule | default: how the category was decided

event_daysrequired table

Each event cut at the local midnights of meta.timezone: one row per event per day it touches, inside the window. Wall-clock seconds, so a meeting from 09:00 to 10:00 is 3600 seconds even on a daylight-saving day.

FieldTypeRequiredMeaning
event_idTEXTyesthe event
dayTEXTdateyeslocal date (YYYY-MM-DD) in meta.timezone
start_sINTEGERyeswall-clock second of the day it starts on that day (0 = midnight)
end_sINTEGERyeswall-clock second of the day it ends on that day (86400 = runs to midnight)
duration_sINTEGERyesend_s - start_s

time_entries

Optional tracked time entries (1.1). Each row is a completed time record from one source account. Report by day in the entry's own local zone, and measure elapsed seconds. Calendar events and wall-clock slices are separate.

FieldTypeRequiredMeaning
entry_idTEXTyesstable source:source_account:key, e.g. toggl-csv:studio:tg-401
dayTEXTdateyessource date for a date-only record; otherwise the local start day in tz, YYYY-MM-DD
duration_sINTEGERyesnon-negative elapsed seconds, e.g. 5400 for 90 minutes
start_utcTEXTinstantnoISO 8601 UTC start, NULL when the export gives only a date and duration
end_utcTEXTinstantnoISO 8601 UTC end (exclusive); set with start_utc or left NULL with it
tzTEXTnoIANA zone for the source's local time, required when both instants are known
client_idTEXTnostable source-account client id
clientTEXTnodisplay label, e.g. Prism Workshop
project_idTEXTnostable source-account project or program id
projectTEXTnodisplay label, e.g. Winter mural
task_idTEXTnostable source-account task id
taskTEXTnodisplay label, e.g. Sketching
person_idTEXTnosource-scoped opaque person id; keep names and email addresses out of this field
billableINTEGERno1 = billable, 0 = non-billable, NULL = unknown
billedINTEGERno1 = already invoiced, 0 = known to be uninvoiced, NULL = unknown
hourly_rateREALnonon-negative major currency units per hour, e.g. 85.50; NULL when missing
currencyTEXTcurrencynoISO 4217 currency of hourly_rate, e.g. USD; NULL with missing rate
sourceTEXTtime_sourcesyesconnector id (vocab time_sources)
source_accountTEXTyesstable account or workspace alias used as the id namespace, e.g. studio
source_refTEXTyessource object id, or file and line, e.g. december.csv:7
imported_atTEXTinstantyesISO 8601 UTC import instant, excluded from meta.data_hash
confidenceTEXTnorule | default | detected | manual when a value is inferred; NULL for source values

data_issues

What the importer could not read or decided: events skipped, rules it cannot follow, unknown zones, duplicates.

FieldTypeRequiredMeaning
issue_idTEXTyesstable id
severityTEXTseveritiesyesinfo | warn | error (vocab severities)
kindTEXTyesrows_skipped | rule_unsupported | unknown_tz | duplicate_uid | duplicate | outside_window | no_self | ...
titleTEXTyesone line
detailTEXTyeswhat and where (file:line), never an event's description
source_refTEXTnofile, or file:line
handlingTEXTyeswhat the importer did about it

annotations

Notes on metrics and pages (platform table, as finance@2). Numbers only through {{metric:...}} placeholders.

FieldTypeRequiredMeaning
annotation_idTEXTyesstable id
targetTEXTyesmetric id or page id
kindTEXTyesnote | caveat | flag | decision | open_item
bodyTEXTyesthe note text
authorTEXTnoperson or assistant
source_refTEXTnowhere it came from
created_atTEXTnoISO 8601 instant
data_hashTEXTnohash of the cited metric values when written (stale when they change)
statusTEXTnoactive | stale | retired

metric_registry

FieldTypeRequiredMeaning
metric_idTEXTyese.g. time.weekly
versionINTEGERnothe metric's own version
unitTEXTnorows | hours | count | pct ...
paramsTEXTnocomma list of parameters it honours
descriptionTEXTnothe @desc line
sqlTEXTnoexpanded SQL
testTEXTnothe @test line (check that covers it)

Vocabularies

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

calendar_kinds4 values

work · personal · shared · subscribed

category_kinds5 values

meeting · focus · personal · other · time_off

excluded_reasons6 values

cancelled · declined · duplicate · all_day · free · ignored

responses5 values

accepted · tentative · declined · needs_action · none

severities3 values

info · warn · error

sources4 values

ics-google · ics-apple · ics-outlook · ics

statuses3 values

confirmed · tentative · cancelled

time_sources5 values

toggl-csv · harvest-csv · clockify-csv · project-csv · sheet-csv

transparency2 values

busy · free

Changelog

1.1.0 (2026-12-02)

  • Add optional time_entries for completed time records from time trackers, project tools and sign-up sheets.
  • Track elapsed seconds, local dates, client/project/task IDs, pseudonymous person IDs, billable and billed state, and hourly rate with currency. Add fictional fixtures, a conformance warning and an additive migration.
  • Re-pin Time Audit to the new minor. Calendar occurrence fields and metrics keep their existing meaning.

1.0.0 (2026-11-30)

  • First published version, for Time Audit: calendars, categories, event_rules, events (one row per occurrence, expanded by the connector, with the reason an occurrence does not count as busy time), the derived event_days (each occurrence cut at the person's local midnights, wall-clock seconds), data_issues, annotations, metric_registry.
  • Conformance checks: the person's zone, event ids, times and all-day midnights, known calendars, excluded reasons, duplicates, the event-day cut recomputed, series ids, known categories (warn), meta rules (warn).
  • Fictional fixtures covering every check, including a repeating meeting across a daylight-saving change, a declined meeting, a cancelled instance, an overnight event cut at midnight, an all-day day off and a duplicate copy.

Other standards