Documentation ¶
Index ¶
Constants ¶
View Source
const ( Draft PlanStatusType = "DRAFT" Review = "REVIEW" Schedules = "SCHEDULED" InProgress = "IN_PROGRESS" Aborted = "ABORTED" Completed = "COMPLETED" )
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func ConnectDatabase ¶
func ConnectDatabase()
Types ¶
type BaseModel ¶
type Plan ¶
type Plan struct { BaseModel Title string `json:"title"` Author string `json:"author"` StartTime *time.Time `json:"start"` EndTime *time.Time `json:"end"` Operator string `json:"operator"` Status PlanStatusType `json:"status"` Overview string `json:"overview" gorm:"default:''"` RollbackPlan string `json:"rollbackPlan" gorm:"default:''"` PlanComments []PlanComment `json:"planComments"` }
Plan model
type PlanComment ¶
type PlanComment struct { BaseModel Author string `json:"author"` PlanID uuid.UUID `json:"planId"` Body string `json:"body"` }
PlanComment model
type PlanStatusType ¶
type PlanStatusType string
Click to show internal directories.
Click to hide internal directories.