package model import "gorm.io/gorm" type Status int const ( Todo Status = iota NeedsMoreInfo Started Done ) func (s Status) IsDone() bool { return s == Done } type Task struct { gorm.Model ProjektID uint Projekt Projekt MandantID uint Mandant Mandant Titel string `json:"titel"` Description string `json:"description"` Status Status `json:"status"` }