Skip to main content

Pomodoro

pomodoro_timers, pomodoro_sessions, and shared project links.
1 min read

Source: 000005_domains.up.sql, 000023_normalize_shared_links.up.sql.

pomodoro_timers#

ColumnNotes
profile_id / created_by
name / description / color
work_minutesDefault 25
short_break_minutesDefault 5
long_break_minutesDefault 15
cycles_per_roundDefault 4
auto_start_breaks / auto_start_work
sound_enabled / notifications_enabled
linked_task_idTEXT soft ref to task
project linkprofile_project_links (entity_type = pomodoro_timer); the API may expose a computed linkedProjectId
pinned_at / archived_at / deleted_at

pomodoro_sessions#

ColumnNotes
profile_id / user_id / timer_id
phasework/break…
cycle_index
planned_seconds / elapsed_seconds
completed
started_at / ended_at
date_keyLocal day of the session

No soft delete on sessions (execution history).

Daily stats aggregate sessions for the entire profile by date_key (profile_id + date_key).