phase 2 initial test

This commit is contained in:
2026-05-06 23:39:04 +02:00
parent 8592fc5d65
commit 57991e5406
17 changed files with 720 additions and 133 deletions
+9 -9
View File
@@ -3,13 +3,13 @@ package models
import "time"
type Repository struct {
ID int64 `xorm:"pk autoincr"`
OwnerID int64 `xorm:"notnull index"`
Name string `xorm:"notnull varchar(100)"`
Description string `xorm:"varchar(500)"`
IsPrivate bool `xorm:"default false"`
DefaultBranch string `xorm:"default 'main' varchar(255)"`
DiskPath string `xorm:"notnull"` // absolute path under REPO_ROOT
CreatedAt time.Time `xorm:"created"`
UpdatedAt time.Time `xorm:"updated"`
ID int64 `xorm:"pk autoincr" json:"id"`
OwnerID int64 `xorm:"notnull index" json:"ownerId"`
Name string `xorm:"notnull varchar(100)" json:"name"`
Description string `xorm:"varchar(500)" json:"description"`
IsPrivate bool `xorm:"default false" json:"isPrivate"`
DefaultBranch string `xorm:"default 'main' varchar(255)" json:"defaultBranch"`
DiskPath string `xorm:"notnull" json:"-"`
CreatedAt time.Time `xorm:"created" json:"createdAt"`
UpdatedAt time.Time `xorm:"updated" json:"updatedAt"`
}