Documentation ¶
Index ¶
Constants ¶
View Source
const ( View = "view" ViewAndUpdate = "view_and_update" )
Variables ¶
This section is empty.
Functions ¶
func IsValidStatus ¶
func StatusStrings ¶
func StatusStrings() []string
Types ¶
type Annotation ¶
type PolicyMode ¶
type PolicyMode string
type Task ¶
type Task struct { ID uint `gorm:"primaryKey" json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` OwnerId uint `json:"owner_id"` Owner User `gorm:"foreignKey:ID;references:OwnerId"` AssigneeId uint `json:"assignee_id"` Assignee User `gorm:"foreignKey:ID;references:AssigneeId"` Description string `json:"desc"` Due *time.Time `json:"due"` Priority Priority `json:"priority"` Private bool `json:"private"` State State `json:"state"` Status Status `json:"status"` Comments []Comment `json:"comments" gorm:"constraint:OnDelete:CASCADE"` Annotations []Annotation `json:"annotations" gorm:"constraint:OnDelete:CASCADE"` }
Task is some unit of work to do
type User ¶
type User struct { ID uint `gorm:"primaryKey" json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` Username string `gorm:"unique" json:"username"` Name string `gorm:"not null" json:"name"` OwnedTasks []Task `gorm:"foreignKey:OwnerId;constraint:OnDelete:CASCADE"` AssignedTasks []Task `gorm:"foreignKey:AssigneeId"` }
Click to show internal directories.
Click to hide internal directories.