Commit: Bulk unfinished work
This commit is contained in:
@@ -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
27
model/task.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user