Semaphore/db/Schedule.go

19 lines
559 B
Go
Raw Normal View History

2021-09-06 13:05:10 +02:00
package db
type Schedule struct {
ID int `db:"id" json:"id"`
ProjectID int `db:"project_id" json:"project_id"`
TemplateID int `db:"template_id" json:"template_id"`
CronFormat string `db:"cron_format" json:"cron_format"`
Name string `db:"name" json:"name"`
Disabled bool `db:"disabled" json:"disabled"`
LastCommitHash *string `db:"last_commit_hash" json:"-"`
RepositoryID *int `db:"repository_id" json:"repository_id"`
2021-09-06 13:05:10 +02:00
}
2024-06-23 19:24:22 +02:00
type ScheduleWithTpl struct {
Schedule
TemplateName string `db:"tpl_name" json:"tpl_name"`
}