package plant import ( "sundynix-go/global" "time" ) type CareTask struct { global.BaseModel PlantId string `json:"plantId" gorm:"index"` PlanId string `json:"planId" gorm:"index"` UserId string `json:"userId" gorm:"index"` Name string `json:"name"` Icon string `json:"icon" gorm:"type:text"` DueDate time.Time `json:"dueDate"` // 应做时间(用于判断逾期) CompletedAt *time.Time `json:"completedAt" gorm:"column:completed_at"` // 完成时间(为nil表示未完成) Status int `json:"status"` // 1:待执行 2:已完成 3:已跳过 }