diff options
Diffstat (limited to 'internal/models/types.go')
| -rw-r--r-- | internal/models/types.go | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/internal/models/types.go b/internal/models/types.go index 4a923a8..1267d31 100644 --- a/internal/models/types.go +++ b/internal/models/types.go @@ -16,8 +16,9 @@ type Task struct { DueDate *time.Time `json:"due_date,omitempty"` Priority int `json:"priority"` Completed bool `json:"completed"` - Labels []string `json:"labels"` - URL string `json:"url"` + Labels []string `json:"labels"` + EstimatedMinutes int `json:"estimated_minutes,omitempty"` + URL string `json:"url"` CreatedAt time.Time `json:"created_at"` // Recurrence (doot-native tasks only). RecurrenceSeriesID != "" is the @@ -32,18 +33,20 @@ type Task struct { // Project is a lightweight grouping for doot-native tasks. Exactly one // project per task (Task.ProjectID); labels handle cross-cutting tagging. type Project struct { - ID string `json:"id"` - Name string `json:"name"` - Color string `json:"color"` - CreatedAt time.Time `json:"created_at"` - Archived bool `json:"archived"` + ID string `json:"id"` + Name string `json:"name"` + Color string `json:"color"` + CreatedAt time.Time `json:"created_at"` + Archived bool `json:"archived"` + BudgetTracked bool `json:"budget_tracked"` } // LabelColor maps a label's free-text name to its display color. A label // with no matching row here just has no color assigned yet. type LabelColor struct { - Name string `json:"name"` - Color string `json:"color"` + Name string `json:"name"` + Color string `json:"color"` + BudgetTracked bool `json:"budget_tracked"` } // Meal represents a meal from PlanToEat |
