summaryrefslogtreecommitdiff
path: root/internal/models
diff options
context:
space:
mode:
Diffstat (limited to 'internal/models')
-rw-r--r--internal/models/types.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/models/types.go b/internal/models/types.go
index 41ba162..1decd93 100644
--- a/internal/models/types.go
+++ b/internal/models/types.go
@@ -29,6 +29,13 @@ type Task struct {
RecurrenceSeriesID string `json:"recurrence_series_id,omitempty"`
NextOccurrenceOverride *time.Time `json:"next_occurrence_override,omitempty"`
+ // CommittedDate is "I chose to do this on this day," deliberately distinct
+ // from DueDate, which after migration 031 means only an externally-imposed
+ // deadline. The day's list is a pull of committed work plus real deadlines,
+ // rather than a push of everything unblocked -- which is what makes ending a
+ // day at zero possible.
+ CommittedDate *time.Time `json:"committed_date,omitempty"`
+
// Chain membership (doot-native tasks only). ChainID != "" is the
// indicator that a task belongs to a linear task chain.
ChainID string `json:"chain_id,omitempty"`