blob: 443052b34ae93b090599b11b167172b1ed69aefd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package entities
import (
"time"
)
type TaskLog struct {
BaseModel
TaskName string `gorm:"index" json:"task_name,omitempty"`
Status string `json:"status,omitempty"`
Message string `json:"message,omitempty"`
ExecutedAt time.Time `json:"executed_at,omitempty"`
}
type TaskStatus struct {
BaseModel
TaskName string `gorm:"uniqueIndex;not null" json:"task_name"`
IsCompleted bool `gorm:"default:false" json:"is_completed,omitempty"`
LastRunAt time.Time `json:"last_run_at,omitempty"`
}
|