Commit: Bulk unfinished work

This commit is contained in:
2026-01-22 17:39:04 +01:00
parent 6c46b4efcc
commit 3a9acc42a2
68 changed files with 5047 additions and 1064 deletions

View File

@@ -1,6 +1,8 @@
package model
import "gorm.io/gorm"
import (
"gorm.io/gorm"
)
type Projekt struct {
gorm.Model

27
model/task.go Normal file
View File

@@ -0,0 +1,27 @@
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"`
}