first round of files

This commit is contained in:
2026-05-06 23:13:06 +02:00
parent a30962474d
commit 2aa5d01307
24 changed files with 991 additions and 0 deletions
+24
View File
@@ -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"`
}