package models import "time" type SchedulerRun struct { JobName string `gorm:"column:job_name;primaryKey;size:100" json:"job_name"` LastStartedAt *time.Time `gorm:"column:last_started_at" json:"last_started_at,omitempty"` LastFinishedAt *time.Time `gorm:"column:last_finished_at" json:"last_finished_at,omitempty"` LastStatus string `gorm:"column:last_status;size:20;not null;default:'idle'" json:"last_status"` LastError string `gorm:"column:last_error;type:text" json:"last_error,omitempty"` UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` } func (SchedulerRun) TableName() string { return "qt_scheduler_runs" }