phase 2 testing complete
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user