phase 2 testing complete

This commit is contained in:
2026-05-07 00:09:50 +02:00
parent 57991e5406
commit 5d8662595c
27 changed files with 1150 additions and 112 deletions
+9 -9
View File
@@ -3,13 +3,13 @@ package models
import "time"
type Repository struct {
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"`
ID int64 `xorm:"'id' pk autoincr" json:"id"`
OwnerID int64 `xorm:"'owner_id' notnull index" json:"ownerId"`
Name string `xorm:"'name' notnull varchar(100)" json:"name"`
Description string `xorm:"'description' varchar(500)" json:"description"`
IsPrivate bool `xorm:"'is_private' default false" json:"isPrivate"`
DefaultBranch string `xorm:"'default_branch' default 'main' varchar(255)" json:"defaultBranch"`
DiskPath string `xorm:"'disk_path' notnull" json:"-"`
CreatedAt time.Time `xorm:"'created_at' created" json:"createdAt"`
UpdatedAt time.Time `xorm:"'updated_at' updated" json:"updatedAt"`
}