Files
vt/model/task.go
2026-01-22 17:39:04 +01:00

28 lines
392 B
Go

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"`
}