mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-27 02:52:14 +01:00
19 lines
610 B
Go
19 lines
610 B
Go
package db
|
|
|
|
type Schedule struct {
|
|
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:"-"`
|
|
CronFormat string `db:"cron_format" json:"cron_format"`
|
|
Name string `db:"name" json:"name"`
|
|
Active bool `db:"active" json:"active"`
|
|
|
|
LastCommitHash *string `db:"last_commit_hash" json:"-" backup:"-"`
|
|
RepositoryID *int `db:"repository_id" json:"repository_id" backup:"-"`
|
|
}
|
|
|
|
type ScheduleWithTpl struct {
|
|
Schedule
|
|
TemplateName string `db:"tpl_name" json:"tpl_name"`
|
|
}
|