schedule.go 556 B

123456789101112131415
  1. package model
  2. import "time"
  3. type ScheduleJob struct {
  4. ID uint `gorm:"primaryKey;autoIncrement" json:"id"`
  5. Name string `gorm:"size:100;not null" json:"name"`
  6. PluginName string `gorm:"size:100;not null" json:"plugin_name"`
  7. CronExpr string `gorm:"size:50;not null" json:"cron_expr"`
  8. Enabled bool `gorm:"default:true" json:"enabled"`
  9. LastRunAt *time.Time `json:"last_run_at"`
  10. NextRunAt *time.Time `json:"next_run_at"`
  11. CreatedAt time.Time `json:"created_at"`
  12. UpdatedAt time.Time `json:"updated_at"`
  13. }