Align backend workbench API with prototype

This commit is contained in:
2026-07-19 21:46:43 +08:00
parent 1fcec3e0b5
commit 03a5c52b72
8 changed files with 644 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package models
import "time"
type SenlinAgentCronPlan struct {
ID uint `gorm:"primaryKey"`
Identity string `gorm:"type:char(36);uniqueIndex"`
ProjectID uint `gorm:"index;not null"`
ProjectIdentity string `gorm:"type:char(36);index"`
CreatedBy uint `gorm:"index;not null"`
CreatedByIdentity string `gorm:"type:char(36);index"`
Title string `gorm:"not null"`
Schedule string `gorm:"not null"`
NextRunAt *time.Time
Enabled bool `gorm:"not null;default:false"`
LastResult string
CreatedAt time.Time
UpdatedAt time.Time
}
func (SenlinAgentCronPlan) TableName() string {
return "senlin_agent_cron_plans"
}