diff options
author | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-20 03:43:48 -0400 |
---|---|---|
committer | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-20 03:43:48 -0400 |
commit | 3402ccdddd8ff61b16223b764d993c124164044a (patch) | |
tree | 5feccf155c39b67606b2de831e5d903d9389e1af /internal/chore/model | |
parent | 7a5eacdaf31b228ab07d5c8422d179d210e57825 (diff) | |
parent | ee7a8e24da1dfc959d78236a63ee65acc4be45e4 (diff) | |
download | donetick-3402ccdddd8ff61b16223b764d993c124164044a.tar.gz donetick-3402ccdddd8ff61b16223b764d993c124164044a.tar.bz2 donetick-3402ccdddd8ff61b16223b764d993c124164044a.zip |
Merge branch 'dev'
Diffstat (limited to 'internal/chore/model')
-rw-r--r-- | internal/chore/model/model.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/chore/model/model.go b/internal/chore/model/model.go index c9cf28c..38d8354 100644 --- a/internal/chore/model/model.go +++ b/internal/chore/model/model.go @@ -36,11 +36,12 @@ type ChoreAssignees struct { type ChoreHistory struct { ID int `json:"id" gorm:"primary_key"` // Unique identifier ChoreID int `json:"choreId" gorm:"column:chore_id"` // The chore this history is for - CompletedAt time.Time `json:"completedAt" gorm:"column:completed_at"` // When the chore was completed + CompletedAt *time.Time `json:"completedAt" gorm:"column:completed_at"` // When the chore was completed CompletedBy int `json:"completedBy" gorm:"column:completed_by"` // Who completed the chore AssignedTo int `json:"assignedTo" gorm:"column:assigned_to"` // Who the chore was assigned to Note *string `json:"notes" gorm:"column:notes"` // Notes about the chore DueDate *time.Time `json:"dueDate" gorm:"column:due_date"` // When the chore was due + UpdatedAt *time.Time `json:"updatedAt" gorm:"column:updated_at"` // When the record was last updated } type FrequencyMetadata struct { |