reinit
This commit is contained in:
commit
ad8c238e78
53 changed files with 10091 additions and 0 deletions
27
backend/models/models.go
Normal file
27
backend/models/models.go
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue