mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-25 06:15:56 +01:00
16 lines
484 B
Go
16 lines
484 B
Go
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"`
|
|
RepositoryID *int `db:"repository_id" json:"repository_id"`
|
|
LastCommitHash *string `db:"last_commit_hash" json:"-"`
|
|
}
|
|
|
|
type ScheduleWithTpl struct {
|
|
Schedule
|
|
TemplateName string `db:"tpl_name" json:"tpl_name"`
|
|
}
|