This commit is contained in:
lubiana 2025-07-28 19:54:33 +02:00
commit ad8c238e78
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
53 changed files with 10091 additions and 0 deletions

27
backend/models/models.go Normal file
View file

@ -0,0 +1,27 @@
package models
import "time"
type Checklist struct {
UUID string `json:"uuid"`
Name string `json:"name"`
}
type ChecklistItem struct {
ID int `json:"id"`
Content string `json:"content"`
Checked bool `json:"checked"`
ParentID *int `json:"parent_id"`
LockedBy *string `json:"locked_by,omitempty"`
LockUntil *time.Time `json:"lock_until,omitempty"`
Checklist string `json:"checklist_uuid"`
Dependencies []int `json:"dependencies,omitempty"`
NotBefore *time.Time `json:"not_before,omitempty"`
NotAfter *time.Time `json:"not_after,omitempty"`
}
type ItemLock struct {
LockedBy string
Expires time.Time
ChecklistUUID string
}