donetick/internal/subtask/model/model.go
Mo Tarbin 81acbd8eba Add subtask model and repository, implement webhook notification handling
fix Issue with Scheduler
Support NotificationPlatformWebhook
support Discord as notification target
2025-03-05 19:52:10 -05:00

13 lines
504 B
Go

package model
import "time"
type SubTask struct {
ID int `json:"id" gorm:"primary_key"`
ChoreID int `json:"-" gorm:"column:chore_id;index"`
OrderID int8 `json:"orderId" gorm:"column:order_id"`
Name string `json:"name" gorm:"column:name"`
CompletedAt *time.Time `json:"completedAt" gorm:"column:completed_at"`
CompletedBy int `json:"completedBy" gorm:"column:completed_by"`
ParentId *int `json:"parentId" gorm:"column:parent_id"`
}