gitea/models/bots/build_step.go
Bo-Yi.Wu 8255915350 chore: move core package to top folder.
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-25 17:48:44 +08:00

33 lines
672 B
Go

// Copyright 2022 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package bots
import (
"code.gitea.io/gitea/core"
"code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/modules/timeutil"
)
type BuildStep struct {
ID int64
StageID int64 `xorm:"index"`
Number int64
Name string
Kind string
Type string
Status core.BuildStatus
Started timeutil.TimeStamp
Stopped timeutil.TimeStamp
Created timeutil.TimeStamp `xorm:"created"`
}
func (bj BuildStep) TableName() string {
return "bots_build_step"
}
func init() {
db.RegisterModel(new(BuildStep))
}