first round of files
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user