diff options
Diffstat (limited to 'internal/models/types.go')
| -rw-r--r-- | internal/models/types.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/models/types.go b/internal/models/types.go index 8eda33b..aa65e18 100644 --- a/internal/models/types.go +++ b/internal/models/types.go @@ -51,6 +51,15 @@ type Chain struct { CreatedAt time.Time `json:"created_at"` } +// ChainTaskInput seeds one position of a chain at creation time. Priority +// of 0 (the zero value, JSON field omitted) defaults to 1, matching +// CreateNativeTask's default. +type ChainTaskInput struct { + Content string `json:"content"` + Description string `json:"description,omitempty"` + Priority int `json:"priority,omitempty"` +} + // MaintenanceBucket is a finite pool of native tasks that get repeatedly // activated/deactivated: every CycleDays, PickN dormant items are selected // and flipped active with a computed due date. |
