first round of files
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type PRStatus string
|
||||
|
||||
const (
|
||||
PRStatusOpen PRStatus = "open"
|
||||
PRStatusMerged PRStatus = "merged"
|
||||
PRStatusClosed PRStatus = "closed"
|
||||
)
|
||||
|
||||
type PullRequest struct {
|
||||
ID int64 `xorm:"pk autoincr"`
|
||||
RepoID int64 `xorm:"notnull index"`
|
||||
AuthorID int64 `xorm:"notnull index"`
|
||||
Title string `xorm:"notnull varchar(255)"`
|
||||
Body string `xorm:"text"`
|
||||
SourceBranch string `xorm:"notnull varchar(255)"`
|
||||
TargetBranch string `xorm:"default 'main' varchar(255)"`
|
||||
Status PRStatus `xorm:"default 'open' varchar(16)"`
|
||||
CreatedAt time.Time `xorm:"created"`
|
||||
UpdatedAt time.Time `xorm:"updated"`
|
||||
}
|
||||
Reference in New Issue
Block a user