2021-09-06 13:05:10 +02:00
|
|
|
package db
|
|
|
|
|
|
|
|
type Schedule struct {
|
2024-10-05 22:16:25 +02:00
|
|
|
ID int `db:"id" json:"id" backup:"-"`
|
|
|
|
ProjectID int `db:"project_id" json:"project_id" backup:"-"`
|
|
|
|
TemplateID int `db:"template_id" json:"template_id" backup:"-"`
|
2024-06-30 21:16:35 +02:00
|
|
|
CronFormat string `db:"cron_format" json:"cron_format"`
|
|
|
|
Name string `db:"name" json:"name"`
|
2024-06-30 21:57:03 +02:00
|
|
|
Active bool `db:"active" json:"active"`
|
2024-06-30 21:16:35 +02:00
|
|
|
|
2024-10-05 22:16:25 +02:00
|
|
|
LastCommitHash *string `db:"last_commit_hash" json:"-" backup:"-"`
|
|
|
|
RepositoryID *int `db:"repository_id" json:"repository_id" backup:"-"`
|
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"`
|
|
|
|
}
|